Created
April 24, 2011 18:01
-
-
Save click0/939750 to your computer and use it in GitHub Desktop.
Резервное копирование файлов, измененных с такой-то даты
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "date +'%F %R:%S'" > /root/VPSbackups/last.timestamp.backup | |
tar czvf /root/VPSbackups/VPSbackup.tar.gz -N"$LAST" --exclude-from=/VPSbackups/tar.excludelist.txt /etc/ /root/exportdb/ /home/username/ > /root/VPSbackups/backup.log 2>&1 | |
##где tar.excludelist.txt - список исключений; | |
##а LAST - файл с датой в формате date +'%F %R:%S' | |
LAST=`cat /root/VPSbackups/last.timestamp.backup` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment