1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-07-14 03:14:36 +03:00

Add support for sends folder (#1)

* Add sends backup

* Add send

* Add docs for send
This commit is contained in:
jmqm
2021-05-25 16:55:22 -05:00
committed by GitHub
parent 762026a5ad
commit df32ec66f1
3 changed files with 37 additions and 1 deletions

View File

@ -22,6 +22,13 @@ then
install -o $UID -g $GID -m $BACKUP_FILE_PERMISSIONS -d $ATTACHMENT_BACKUP_DIR
fi
SEND_BACKUP_DIR=$(dirname "$SEND_BACKUP_FILE")
if [ ! -d "$SEND_BACKUP_DIR" ]
then
echo "$SEND_BACKUP_DIR not exists. Creating it with owner $UID:$GID and permissions $BACKUP_FILE_PERMISSIONS."
install -o $UID -g $GID -m $BACKUP_FILE_PERMISSIONS -d $SEND_BACKUP_DIR
fi
# For compatibility reasons
if [ "$1" = "/backup.sh" ]; then
>&2 echo "Using /backup.sh is deprecated and will be removed in future versions! Please use \`manual\` as argument instead"