-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Paul,
Has rsnapshot ever dereferenced symlinks for you? The behaviour you
describe is what I would expect.
rsnapshot should never dereference symlinks. The reasons are twofold:
1) How would you back up symlinks if it did?
2) If symlinks were backed up, should the delete operations
recursively delete all the files under the symlink as well?
What if the symlinks points to the root filesystem?
It's always possible I've overlooked something here. However, I'm not
sure how to accomodate your request without breaking other parts of
the program.
Maybe I'm overlooking something here...?
Thanks,
- -Nathan
Hargreaves, Paul wrote:
Both my source folder and destination folder are symlinks (dynamic
pointers to USB disks that change where they think they are); the
--relative option is causing just a single symlink to be created.
If I completely rm -rf /media/secondary/snapshots/* and perform an
rsnapshot hourly I get the following created in
/media/secondary/snapshots/hourly.0/primary/media lrwxrwxrwx 1
root root 15 Sep 6 12:37 primary -> /media/usbdisk3
---- The important parts of /etc/rsnapshot.conf are:
config_version 1.2 interval hourly 20 link_dest 1
one_fs 1
backup /media/primary/ primary/ ----
The log generates the following:
[dates missing since no cut/paste in vnc...] /usr/bin/rsnapshot
hourly: started Setting locale to POSIX "C" echo 23036 >
/var/run/rsnapshot.pid mkdir -m 0755 -p
/media/secondary/snapshots/hourly.0/ /usr/bin/rsync -avx --delete
--numeric-ids --relative --delete-excluded /media/primary/
/media/secondary/snapshots/hourly.0/primary/ touch
/media/secondary/snapshots/hourly.0/ rm -f /var/run/rsnapshot.pid
/usr/bin/logger -i -p user.notice -t rsnapshot /usr/bin/rsnapshot
hourly: completed successfully /usr/bin/rsnapshot hourly: completed
successfully
rsync --version shows 2.6.4.
Should I hack out the --relative? If I do - what are the
implications? Any other suggestions?
Regards
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDHkt9gBvN4A95aoYRAtAeAKDSC3kHfFHf2bCsJ3Pc9J+EhSlRGQCg3yY7
fBLv6KCifKphocyuffp/ttk=
=USvo
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
