Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DATE=`date +%Y-%m-%d`
- FOLDER="World1"
- BACKUP="/opt/backups/world1_$DATE.7z"
- cd /opt/bukkit/
- rdiff-backup World1 /opt/backups/World1
- rdiff-backup --force --remove-older-than 3D /opt/backups/World1 &
- cd /opt/backups/
- if [ -f "$BACKUP" ]
- then
- /opt/pigmap/pigmap/pigmap -B 6 -T 1 -i /opt/backups/World1 -o /opt/pigmap/output -g /opt/pigmap/images -h 3 &
- else
- 7za a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on -xr\!rdiff-backup-data $BACKUP $FOLDER &
- fi
Add Comment
Please, Sign In to add comment