I'll also add, in defense of the developers, that this is backup software. Changing ANYTHING about its default behavior may cause someone who relied on that behavior to have unintended side effects which could have huge measurable costs. This isn't an mp3 player program. Tinkering for every amusing feature idea is probably not desirable.
dagurasu.
From: dagurasu-forge < at > hotmail.com
To: email < at > johannes-niess.de; rsnapshot-discuss < at > lists.sourceforge.net
Date: Mon, 25 Jun 2012 03:37:12 +0000
Subject: Re: [rsnapshot-discuss] Feature Request: timestamping backups
The algorithm exists in my ezrsnapshots bash program (which I probably should just make a page for) and nothing rotates or promotes anywhwere. I would say the code(which exists, but not in perl) is probably not much more complicated because there are no rotation steps needed. It's possible that I could eliminate that without using time stamped file names, but once you're processing times and making permanent file names anyway it really doesn't matter. The real point of my script though wasn't to change the names.. just a nice bonus, and the fact that the code maybe isn't much more complicated comes from a broader reinvention than just this feature alone, which by itself does add complication for little gain.
There's a strong point raised that I very much get, that mucking with a stable and an established code and user behavior for something like this causes hesitation for good reason. It's easy to play with ideas in alpha code when nobody is using it yet.
BTRFS (a COW snapshotting filesystem) has an fsck now, so all of this stuff might be silly soon anyway.
dagurasu
From: email < at > johannes-niess.de
To: rsnapshot-discuss < at > lists.sourceforge.net
Date: Thu, 21 Jun 2012 19:49:20 +0200
Subject: Re: [rsnapshot-discuss] Feature Request: timestamping backups
Am Donnerstag, 21. Juni 2012, 06:44:45 schrieb Nico Kadel-Garcia:
On Thu, Jun 21, 2012 at 6:13 AM, Robbie Smith <zoqaeski < at > gmail.com> wrote:
I don't know if this has been brought up before, but a useful feature
would be the ability to configure backups so that the directories they
are saved in is named by the date/time that the backup was done. At the
It is one of the most requested features. It is consistently rejected
by the maintainers, although I thbink it would be quite useful.
I do not need the feature, but I can see one major use case. "Traditional"
backup programs used on rsnapshot trees like constant directory names as it is
difficult to tell them that daily.0 has moved to daily.1 and does not need a
new backup.
If you're willing to write the perl code to manage, and do the
rotations, and submit it, I bet you'd get a lot further with the
request.
I'm not good enough as a programmer to even try integration into existing
code, but the algorithm isn't complex. Date calculations or state keeping is
not required. It might be even less lines of code than today.
Accepting a minor drawback and using a smart naming scheme, the gist of the
algorithm stays the same. Just exchange file names for array indexes.
Naming scheme: <level><year><month><day><hour><minute>, e. g.
daily-2012-06-21-18-40
1) grep daily* and sort the array
2) "Rotation": Delete oldest (array[0]) and create new directory
3) Promotion: Rename oldest lower level (daily-2012... -> weekly-2012...)
The only drawback I can see is that promotions still cause the same effects as
the current code.
Eliminating this and the level prefix does not even require state keeping or
calculating with dates: The first x (see parsed variable from rsnapshot.conf)
dates/directories in an unfiltered array as above are daily, the next y are
weekly etc.
Hopefully this encourages someone to do the real work.
Johannes Niess
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ rsnapshot-discuss mailing list rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss