Changeset 308 for scripts/usr/local/lib/7dtd/commands/backup.sh
- Timestamp:
- Aug 7, 2017, 7:18:35 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/backup.sh
r258 r308 48 48 fi 49 49 fi 50 50 51 51 if [ ! -d $SDTD_BACKUP_ROOT ]; then 52 52 # Create new backup dir 53 53 mkdir $SDTD_BACKUP_ROOT 54 54 fi 55 56 for H in $(getHooksFor serverPreBackup); do 57 $H 58 done 55 59 56 60 $RSYNC -a --delete --numeric-ids --delete-excluded $SDTD_BASE/instances/./ $NewBackup … … 125 129 fi 126 130 done 131 for H in $(getHooksFor serverPostBackup); do 132 if [ "$SDTD_BACKUP_COMPRESS" = "all" ]; then 133 $H $NewBackup.tar.gz 134 else 135 $H $NewBackup 136 fi 137 done 127 138 } 128 139
Note:
See TracChangeset
for help on using the changeset viewer.