Hello, I suspect a minor bug in the file rsync-2.5.4/backup.c line 206. To identify too-long pathnames, it makes the following test: if (strlen(backup_dir) + strlen(fname) > (MAXPATHLEN - 1)) I think that the constant subtracted off should be 2, to account both for the forward-slash and for the trailing zero in the following snprintf statement, line 211: snprintf(keep_name, sizeof (keep_name), "%s/%s", backup_dir, fname); Notice that (line 178) keep_name is an array of MAXPATHLEN characters. Another (perhaps more logical) possible fix would be to make keep_name MAXPATHLEN+1 characters long. It depends whether MAXPATHLEN was intended to count the trailing zero or not. On my linux machine, MAXPATHLEN is 4095, so I assume that it was not. I sent this to the web bug-submission form about a week and a half ago, but haven't heard anything since then, so I'm forwarding it on to the list here. Please let me know if there's a more appropriate place to send it! Thanks, Mike
Hello all, I've found a simple, rsync-based trick to emulate the "rotating snapshots" feature found on some file servers, and hope that members of this group will find it useful and/or interesting: http://www.mikerubel.org/computers/rsync_snapshots/ Snapshots are (or rather, appear to be) full backups of a system taken at regular intervals, available directly to users through a special read-only system directory. When users accidentally delete or overwrite important files, or find themselves in need of an old version, they can copy from the snapshots without any sysadmin help. Since I first saw the labor savings that automatic, rotating snapshots provide (relative to restore from incremental tape backups), I've been searching for a way to mimic them on my home Linux machine. Rsync gave me a way to deal with the difficult part--making what are really incremental backups appear to be full ones. Thanks in advance for any feedback or suggestions-- Mike
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nice work - a bit lengthy, but gave me some new ideas for backups. Thanks Michael - -- Michael Zimmermann (Vegaa Safety and Security for Internet Services) <zim@vegaa.de> phone +49 89 6283 7632 hotline +49 163 823 1195 Key fingerprint = 1E47 7B99 A9D3 698D 7E35 9BB5 EF6B EEDB 696D 5811 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8snW/72vu22ltWBERAllAAJ9TZIwmQvnJsmaSgVbxybqIIKhYEACfcucC /P8dutu/hfno6VsbYYLlM3E=cliL -----END PGP SIGNATURE-----