rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] File nameing tweaks possible?


From: Andrew Ferguson
Subject: Re: [rdiff-backup-users] File nameing tweaks possible?
Date: Tue, 18 Nov 2008 13:25:54 -0500


On Nov 18, 2008, at 10:18 AM, Chad McKay wrote:
2. Change the file naming convention to preserve the original extension

The reason being, I'd like my users to be able to open the older versions, if they need to, right from a samba share. And, of course it would be much more convenient for them to open the file with the correct extension rather
than renaming/copying it.  E.g. if the file was saved as:

Test.2008-11-17-T17:54:21-05:00.txt  rather than:
Test.txt.2008-11-17-T17:54:21-05:00.snapshot

It would appear to the program as the correct file type and open. Then they
could save it where they like with a new name.


That's going to be much harder, because rdiff-backup relies on those extensions to determine what to do with the files. Also, remember that rdiff-backup will opportunistically compress non-zero files as well (.gz) -- it won't compress the binary files whose extensions are in Globals.no_compression_regexp_string.

In short, I second the suggestion that you use one of the web interfaces or archfs to accomplish the same goal of giving users access to their files.

If you want to explore moving the extension, here are some places to start looking:

rpath.py::get_incfile_info()
longname.py::get_next_free()::scan_next_free()
increment.py::get_inc()

Although that's a short list of what I can find with some quick grepping, the hard part will be making sure that everything still works...


Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]