#65 Issue closed
: Integrate rsnapshot/rbme functionality¶
Labels: enhancement
, discuss / RFC
dagwieers opened issue at 2012-04-12 09:57:¶
Technically the most interesting backup solution is using rsync with rsnapshot/rbme alike functionality. We may want to implement just that by default instead of plain rsync.
kpieth commented at 2012-04-24 19:59:¶
That would be really nice. Because it's not buldin, I implemented a very basic rsync incremental functionality for saving incremental "weekdays".
setting in local.conf:
BACKUP_RSYNC_OPTIONS=( "${BACKUP_RSYNC_OPTIONS[@]}" --force --backup --backup-dir=/$NETFS_PREFIX/$(date +%A) )
added to /usr/share/rear/backup/RSYNC/default/50_make_rsync_backup.sh
(rsync)
# dc-systeme addon for incremental rsync
if [[ "${BACKUP_RSYNC_OPTIONS[@]}" =~ "--backup" ]]
then
mkdir $TMP_DIR/emptydir
LogPrint "Cleaning $BACKUP_PROG backup-dir '${RSYNC_PROTO}://${RSYNC_USER}@${RSYNC_HOST}:${RSYNC_PORT}/${RSYNC_PATH}/${RSYNC_PREFIX}/$(date +%A)'"
$BACKUP_PROG --password-file=/etc/rsync.password --delete -a $TMP_DIR/emptydir/ \
"${RSYNC_PROTO}://${RSYNC_USER}@${RSYNC_HOST}:${RSYNC_PORT}/${RSYNC_PATH}/${RSYNC_PREFIX}/$(date +%A)"
rm -Rf $TMP_DIR/emptydir
fi
not very nice, but maybe you can use it as an idea.
gdha commented at 2013-01-14 14:43:¶
As RBME has been added into rear I guess we can close this request?
[Export of Github issue for rear/rear.]