Maarten Bezemer wrote:
Hi,
On Fri, 12 Jun 2009, Cybertinus wrote:
But my desktop isn't turned on 24/7. I turn it off every night.
When I turn it back on, then my script runs a backup again. And when
it runs rdiff-backup --remove-older-than 2D
"/backup/snapshots/home/cybertinus/mail" it finds a lot of old
increments. I get something like the following error:
"Starting backup of /home/cybertinus/mail at Fri Jun 12 10:00:32 CEST
2009
Fatal Error: Found 5 relevant increments, dated:
Wed Jun 10 01:00:51 2009
Wed Jun 10 06:00:43 2009
Wed Jun 10 07:00:53 2009
Wed Jun 10 08:00:51 2009
Wed Jun 10 09:00:44 2009
If you want to delete multiple increments in this way, use the --force.
Done backing up /home/cybertinus/mail at Fri Jun 12 10:00:49 CEST 2009"
Are you running the --remove-older-than after (or before!) every hourly
run. Why not? That might help. (Untested might..)
I run the --remove-older-than command after I create a new backup. Are
you suggesting to run it before the backup?
Or, maybe it would be an idea to keep a limited number of increments,
counting increments and not days. That way, you can surely remove 1
increment after (or before) every regular run.
So, given you backup every hour and want to keep 2 days worth of
backups, that is 48 hourly increments in the 'worst case'. Of course in
theory this could mean you keep 48 days worth of history when you only
have your computer switched on for one hour a day, but in that specific
case it would actually make more sense to have 48 days of history than
only 2 increments total.
I used rsnapshot for backups before I used rdiff-backup. One of the
reasons I switched away from it was that I could only tell rsnapshot to
have an amount of snapshots and not "keep the snapshot for 2 days". I
just like the 2 days option better, so I think I'm sticking to that.
My desktop has an uptime of approximately 16 hours a day.
HTH,
HTH?
Maarten
Regards,
Cybertinus
_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL:
http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki