SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
no_create_root and catching up backups
Author Message
Post no_create_root and catching up backups 
Hello!

i'm using rsnapshot to backup my laptop's disk on an external usb drive.
I'm using no_create_root to prevent backups when the external drive
isn't attached. The jobs are automated by cron and anacron. I got a
problem with the rotation of the backups: since the external drive isn't
attached all the time the backups fail (like they should):

[01/Jan/2012:10:32:22] /usr/bin/rsnapshot weekly: ERROR:
/media/backup/rsnapshot does not exist.

I would expect rsnapshot to realize that the last weekly backup is
missing and to run rsnapshot weekly/daily before the schedules hourly
(which occurs more often of course). I couldn't figure out how to make
rsnapshot catch up the missing (e.g. weekly) backup.

Any ideas how to do this?

Thanks a lot!

Michael


--
GPG:

KeyID 0xf91820b704ca1d58
Fingerprint 65F6 3715 B338 E229 22CB 1729 F918 20B7 04CA 1D58


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post no_create_root and catching up backups 
Hallo, Michael,

Du meintest am 18.01.12:

i'm using rsnapshot to backup my laptop's disk on an external usb
drive. I'm using no_create_root to prevent backups when the external
drive isn't attached. The jobs are automated by cron and anacron. I
got a problem with the rotation of the backups: since the external
drive isn't attached all the time the backups fail (like they
should):

[01/Jan/2012:10:32:22] /usr/bin/rsnapshot weekly: ERROR:
/media/backup/rsnapshot does not exist.

I would expect rsnapshot to realize that the last weekly backup is
missing and to run rsnapshot weekly/daily before the schedules hourly
(which occurs more often of course).

Why should it?
When I compare backups I look for the time stamps, not for the numbers
of the versions.
And when there is a gap between (p.e.) "weekly.2" and "weekly.4" I
expect also a gap in the time stamps.

I couldn't figure out how to
make rsnapshot catch up the missing (e.g. weekly) backup.

It has to be missing when the job hasn't run.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post no_create_root and catching up backups 
Well in extreme i think i'll only backup one day at all since the old
backups aren't rotated. Or am i getting something wrong?

On 01/19/2012 07:32 AM, Helmut Hullen wrote:
Hallo, Michael,

Du meintest am 18.01.12:

i'm using rsnapshot to backup my laptop's disk on an external usb
drive. I'm using no_create_root to prevent backups when the external
drive isn't attached. The jobs are automated by cron and anacron. I
got a problem with the rotation of the backups: since the external
drive isn't attached all the time the backups fail (like they
should):

[01/Jan/2012:10:32:22] /usr/bin/rsnapshot weekly: ERROR:
/media/backup/rsnapshot does not exist.

I would expect rsnapshot to realize that the last weekly backup is
missing and to run rsnapshot weekly/daily before the schedules hourly
(which occurs more often of course).

Why should it?
When I compare backups I look for the time stamps, not for the numbers
of the versions.
And when there is a gap between (p.e.) "weekly.2" and "weekly.4" I
expect also a gap in the time stamps.

I couldn't figure out how to
make rsnapshot catch up the missing (e.g. weekly) backup.

It has to be missing when the job hasn't run.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


--
GPG:

KeyID 0xf91820b704ca1d58
Fingerprint 65F6 3715 B338 E229 22CB 1729 F918 20B7 04CA 1D58

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post no_create_root and catching up backups 
Am Mittwoch, 18. Januar 2012, 21:34:46 schrieb Michael Strobel:
Hello!

i'm using rsnapshot to backup my laptop's disk on an external usb drive.
I'm using no_create_root to prevent backups when the external drive
isn't attached. The jobs are automated by cron and anacron. I got a
problem with the rotation of the backups: since the external drive isn't
attached all the time the backups fail (like they should):

[01/Jan/2012:10:32:22] /usr/bin/rsnapshot weekly: ERROR:
/media/backup/rsnapshot does not exist.

I would expect rsnapshot to realize that the last weekly backup is
missing and to run rsnapshot weekly/daily before the schedules hourly
(which occurs more often of course). I couldn't figure out how to make
rsnapshot catch up the missing (e.g. weekly) backup.

Any ideas how to do this?

Hi Michael,

anacron uses files and their timestamps in /var/spool/cron/lastrun/ to keep
track of executed intervals of e. g. cron.hourly. If rsnapshot is unsuccessful
(i. e. no disc attached), a wrapper script in /etc/cron.hourly could delete
/var/spool/cron/lastrun/cron.hourly. This would trigger a re-execution of all
hourly anancron jobs in 10 minutes (via the real cron entry).

HTH,

Johannes Nieß

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post no_create_root and catching up backups 
Hallo, Michael,

Du meintest am 19.01.12:

[...]

[Top post and full quote repaired]

I would expect rsnapshot to realize that the last weekly backup is
missing and to run rsnapshot weekly/daily before the schedules
hourly (which occurs more often of course).

Why should it?
When I compare backups I look for the time stamps, not for the
numbers of the versions.
And when there is a gap between (p.e.) "weekly.2" and "weekly.4" I
expect also a gap in the time stamps.

[...]

Well in extreme i think i'll only backup one day at all since the old
backups aren't rotated. Or am i getting something wrong?

"That depends!"
On my laptop I have defined "hourly" to run every 6 hours - that fits
most times.
The "daily", "weekly" and "monthly" intervals are controlled by
"anacron", and that works as expected ...

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB