Scripts
rcb-rsnapshot.sh
Run rsnapshot
shell> /root/bin/rcb-rsnapshot.sh
rcb-rsnapshot.sh [-h|--help] [-i|--increment=[hourly,daily,weekly,monthly]] -- rsnapshot backup
where:
-h --help show this help text
-i --increment period [hourly,daily,weekly or monthly]
rcb-encrypt.sh
Delete files in directory $RCB_META. If directory $RCB_META doesn’t exist, create it.
Create directory $RCB_META/$REMOTE if it doesn’t exist. REMOTE are the directories defined in BACKUP POINTS (3rd parameter) of rsnapshot.conf
Store lists of empty directories, links, special files and sockets in the directory $RCB_META/$REMOTE. Create digests in $RCB_META/$REMOTE/$RCB_DIGESTS
Encrypt $RCB_BCK_ROOT/$RCB_BCK_PREFIX to $RCB_ENC
rcb-rsync.sh
Rsync encrypted data from SRC to DST, defined as follows
SRC="$RCB_ENC"
DST="$BCK_USER@$BCK_HOST:$BCK_DST"
rcb-rsync-back.sh
Restore encrypted data from the remote backup (SRC) to local (DST). SRC and DST are defined as follows.
SRC="$BCK_USER@$BCK_HOST:$BCK_DST"
DST="$RCB_ENCR"
Running the script with -l will symlink $RCB_ENC to $RCB_ENCR.
USAGE="$(basename "$0") [-h|--help] [-l|--link] [-d|--delete] -- rsync from backup
where:
-h --help show this help text
-l --link links the origin directory instead of rsync
-d --delete delete the destination before rsync"
rcb-decrypt.sh
Decrypt data from SRC to DST, defined as follows
SRC="$RCB_ENCR"
DST="$RCB_DEC"
Running the script with -d will delete data in DST before decryption.
USAGE="$(basename "$0") [-h|--help] [-d|--delete] -- decrypt backup
where:
-h --help show this help text
-d --delete decrypted data, if exist"
rcb-restore.sh
Restore data to $RCB_RST_ROOT .