Is it possible to rsnapshot localsource to remotetarget?
2
votes
0
answers
121
views
Since rsnapshot is based on rsync I wanted to try to use rsnapshot on my client server to backup to a remote server. The Problem is I am unable to find proper informations to set this up. I now how to use rsync to save files/dirs from my client server to my remote server but struggle with the rsnapshot conf.
My initial thought was I just switch source and target inside the rsnapshot.conf file:
LocalSource -> LocalDestionation:
backup /home/ localhost
to LocalSource -> RemoteDestination:
backup /home/ user@remote.com:/volume1/Backups
It seems this is not working since rsnapshot -t daily
results in:
echo 4069 > /var/run/rsnapshot.pid
mkdir -m 0755 -p \
/var/cache/rsnapshot/daily.0/user@remote.com:/volume1/Backups/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded \
/home/ \
/var/cache/rsnapshot/daily.0/user@remote.com:/volume1/Backups/remote.com/
touch /var/cache/rsnapshot/daily.0/
and running rsnapshot not in testmode also just saves them to rsnapshots root directory.
**Is it possible to achieve this?**
I am aware of that the switched situation should work:
RemoteSource -> LocalDestination:
backup user@client.com:/home/ localhost
Asked by MaKaNu
(131 rep)
Apr 7, 2022, 11:51 AM
Last activity: Jul 15, 2022, 02:06 AM
Last activity: Jul 15, 2022, 02:06 AM