Remove --progress from backup script.

This commit is contained in:
2018-09-19 07:34:55 +01:00
parent 2dc5884964
commit cd74b031a8

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
DATE=/bin/date DATE=/bin/date
RSYNC=/usr/bin/rsync RSYNC=/usr/bin/rsync
TIMESTAMP=`$DATE +%Y%m%d-%H:%M%z` TIMESTAMP=`$DATE +%Y%m%d-%H:%M%z`
LOGFILE=/mnt/hdd/backup/log/backup.mybook.public.$TIMESTAMP.log LOGFILE=/mnt/hdd/backup/log/backup.mybook.public.$TIMESTAMP.log
@@ -17,7 +17,7 @@ function backup() {
ORIG_DIR=$1 ORIG_DIR=$1
MIRROR_DIR=$2 MIRROR_DIR=$2
echo "Sync $ORIG_DIR to $MIRROR_DIR" echo "Sync $ORIG_DIR to $MIRROR_DIR"
$RSYNC -aXv --delete --force --progress $ORIG_DIR $MIRROR_DIR | $LOG $RSYNC -aXv --delete --force $ORIG_DIR $MIRROR_DIR | $LOG
} }
function backupwd() { function backupwd() {
@@ -26,6 +26,7 @@ function backupwd() {
backup $ORIG_DIR $MIRROR_DIR backup $ORIG_DIR $MIRROR_DIR
} }
# #
# Log Header # Log Header
# #
@@ -48,4 +49,3 @@ backup "/srv/nextcloud" "/mnt/hdd/backup/nextcloud"
# Log Footer # Log Footer
# #
echo end `$DATE` | $LOG echo end `$DATE` | $LOG