This Bash script will:
- Set the source directory (
SOURCE). - Set the destination backup directory (
BACKUP). - Set the destination directory for latest full backup (
LBACKUP). - Get the current system date in
Y-m-d-Timeformat (DATE). - Sets the destination directory as
BACKUP+/+DATE+-diff. - Rsync/copy the files from the
SOURCEto theDESTINATIONfolder by comparing the files fromLBACKUPdirectory. - Enters the destination folder (
cd "$DESTINATION"). - Removes any empty folders (
find).
1
solved Backup bash script explain