link for the file showing difference between two archives
Backup of dec-12 was taken through cron while backup of dec-13 was taken by running the script manually.
And I haven't worked or added any new file between these two days. There were no changes in the files.
Script of Backup:-
#!/bin/bash
#typically the first line of the bash scripts
BACKUPTIME=`date +%b-%d-%y` #get the current date
DESTINATION=/home2/wedevelo/backup/backup-$BACKUPTIME.tar.gz
TESTDESTINATION=/home2/wedevelo/backup/test/backup-$BACKUPTIME.tar.gz
SOURCEFOLDER=/home2/wedevelo/public_html/mdjewellers/
TESTSOURCEFOLDER=/home2/wedevelo/public_html/test/mdjewellers/
tar -zcpf $DESTINATION $SOURCEFOLDER #create the backup
tar -zcpf $TESTDESTINATION $TESTSOURCEFOLDER
Here is cron command.
MAILTO="[email protected]"
5 0 * * * /bin/bash /home2/wedevelo/backup_script.sh
I don't know what os is this as I'm using shared hosting of Bluehost.
