[PATCH] Numbered Backups

Nicolas Goutte nicolasg at snafu.de
Tue Jan 17 10:35:07 GMT 2006


On Tuesday 17 January 2006 00:37, Allen Winter wrote:
> Hi,
>
> Attached is a patch that provides numbered backups (eg. fred.~1~, fred.~2~,
> ..., fred.~N~, where N is limited, default=10) in the KSaveFile class.  It
> also renames the current backupFile() method to simpleBackupFile() and then
> provides a new backupFile() method that reads the user's global configfile
> for backup file parameters: the backup type, the backup extension, and the
> max number of backups.
>
> Thus we could extend to other file backup schemes later, if desired.

If you touch this a code, could you try to implement (or at least to 
think about) allowing to move the file to the backup file instead of copying 
it. That is highly useful when using hard-linked files. (I suppose that each 
user using hardlinks would have his own preference about to move or to copy.)

(...)

> Anyhow, comments appreciated.


Have a nice day!

>
> Regards,
> Allen





More information about the kde-core-devel mailing list