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-Time
format (DATE
). - Sets the destination directory as
BACKUP
+/
+DATE
+-diff
. - Rsync/copy the files from the
SOURCE
to theDESTINATION
folder by comparing the files fromLBACKUP
directory. - Enters the destination folder (
cd "$DESTINATION"
). - Removes any empty folders (
find
).
1
solved Backup bash script explain