Mark Phillips
2017-01-15 17:15:22 UTC
I am trying to make this directory structure for my backups:
/media/backup/rsnapshot/tsunami/daily.0/home/mark/<all my files and folders>
I have this in my rsnapshot.conf
snapshot_root /media/backup/rsnapshot/tsunami/
backup ***@192.168.25.152:/home/ home/
However, I end up with
/media/backup/rsnapshot/tsunami/daily.0/home/home/mark/<all my files and
folders>
(note the repeat of "home" in the path)
The rsync command (from ps aux | grep rsnapshot) looks like this -
/usr/bin/rsync -aHzvv --numeric-ids --relative --delete-excluded --stats
--exclude-from=/etc/rsnapshot/rsnapshot_excludes_tsunami.txt
--rsh=/usr/bin/ssh ***@192.168.25.152:/home/
/media/backup/rsnapshot/tsunami/daily.0/home/
I though the trailing slash in the rsync command would put the contents (ie
the directory "mark") into the destination path (.../daily.0/home/), but
there is an extra "home" in the path. How do I get rid of the second
"home"?
Thanks!
Mark
/media/backup/rsnapshot/tsunami/daily.0/home/mark/<all my files and folders>
I have this in my rsnapshot.conf
snapshot_root /media/backup/rsnapshot/tsunami/
backup ***@192.168.25.152:/home/ home/
However, I end up with
/media/backup/rsnapshot/tsunami/daily.0/home/home/mark/<all my files and
folders>
(note the repeat of "home" in the path)
The rsync command (from ps aux | grep rsnapshot) looks like this -
/usr/bin/rsync -aHzvv --numeric-ids --relative --delete-excluded --stats
--exclude-from=/etc/rsnapshot/rsnapshot_excludes_tsunami.txt
--rsh=/usr/bin/ssh ***@192.168.25.152:/home/
/media/backup/rsnapshot/tsunami/daily.0/home/
I though the trailing slash in the rsync command would put the contents (ie
the directory "mark") into the destination path (.../daily.0/home/), but
there is an extra "home" in the path. How do I get rid of the second
"home"?
Thanks!
Mark