Here's a patch which addresses a very old itch of mine:
I wanted just one invocation to get the backup
and all necessary rotations in one go.
This is useful for desktops and laptops,
which do not run 24x7 and frequently miss rotations otherwise.
The new command "all" checks all intervals from oldest to newest
for need of rotation and then runs the actual backup interval.
Say you have defined interval weekly 4 and interval monthly 12,
then cmd 'monthly' will run as soon as monthly.0 is 30 days older
than weekly.3 - or it if does not exist at all.
Then all faster rotations run, then the actual backup.
This ensures there never will be gaps in your intervals
and you are independent from your uptimes.
Open issues:
The script tries to derive the time periods from the interval names.
There may be expressions I missed, or the name is not time based
or it is not in English.
For these cases, the interval durations should be configurable.
E.g. French:
interval horaire 24 3600
interval quotidienne 7 86400
But this would require more changes to the core script.
Hope this is useful to others,
Peter Klausner
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
