Sample Header Ad - 728x90

Full paths with rsnapshot and rsync server at source side with --relative option are truncated - how to preserve full source paths?

2 votes
1 answer
259 views
When using rsnapshot with following configuration: #/etc/rsnapshot.conf snapshot_root /backup.rsnapshot/ rsync_long_args --relative backup user@laptop:/home/user/test/ ./ a directory /backup.rsnapshot/weekly.0/home/user/test/ is made at the destination machine. However, if rsync server on laptop (i.e. the source machine) is used: #/etc/rsnapshot.conf snapshot_root /backup.rsnapshot/ rsync_long_args --relative backup rsync://IP_of_laptop/user/test/ ./ no full path is preserved but folder /backup.rsnapshot/weekly.0/test is made. /etc/rsyncd.conf on laptop: uid = 1000 gid = 1001 use chroot = no max connections = 4 syslog facility = local5 pid file = /run/rsyncd.pid [user] path = /home/user comment = user home folder Hence my question is how to preserve the full paths using rsync server like it is preserved when the rsync server is not involved?
Asked by Igor Popov (121 rep)
May 24, 2019, 09:38 PM
Last activity: Oct 4, 2022, 11:52 PM