Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #186581 > unrolled thread

rsnapshot

Started byPol Hallen <deben@fuckaround.org>
First post2017-09-07 21:00 +0200
Last post2017-09-09 23:00 +0200
Articles 6 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  rsnapshot Pol Hallen <deben@fuckaround.org> - 2017-09-07 21:00 +0200
    Re: rsnapshot Jochen Spieker <ml@well-adjusted.de> - 2017-09-07 21:50 +0200
      Re: rsnapshot Greg Wooledge <wooledg@eeg.ccf.org> - 2017-09-08 14:30 +0200
        Re: rsnapshot rhkramer@gmail.com - 2017-09-08 17:20 +0200
      Re: rsnapshot Pol Hallen <deben@fuckaround.org> - 2017-09-09 18:10 +0200
        Re: rsnapshot Jochen Spieker <ml@well-adjusted.de> - 2017-09-09 23:00 +0200

#186581 — rsnapshot

FromPol Hallen <deben@fuckaround.org>
Date2017-09-07 21:00 +0200
Subjectrsnapshot
Message-ID<unabV-3Wb-19@gated-at.bofh.it>
Hi folks :-)

I just upgraded 2 pc to debian stable (finally! :-)

I see new version of rsnapshot 1.4.2.1, I'd like make a daily backup and 
keep it for 10 years, so I done this:

cat /etc/rsnapshot.conf
[...]

retain  alpha   1
retain  beta    7
retain  gamma   12
retain  delta   10

cat /etc/cron.d/rsnapshot

00 01         * * *           root    /usr/bin/rsnapshot alpha
30 3          * * *           root    /usr/bin/rsnapshot beta
0  3          * * 1           root    /usr/bin/rsnapshot gamma
30 2          1 * *           root    /usr/bin/rsnapshot delta

is it the correct config?

thanks for help! :)

Pol

[toc] | [next] | [standalone]


#186583

FromJochen Spieker <ml@well-adjusted.de>
Date2017-09-07 21:50 +0200
Message-ID<unaYi-4Ad-13@gated-at.bofh.it>
In reply to#186581

[Multipart message — attachments visible in raw view] — view raw

Pol Hallen:
> 
> cat /etc/rsnapshot.conf
> [...]
> 
> retain  alpha   1
> retain  beta    7
> retain  gamma   12
> retain  delta   10

alpha = daily
beta = weekly
gamma = monthly
delta = yearly?

> cat /etc/cron.d/rsnapshot
> 
> 00 01         * * *           root    /usr/bin/rsnapshot alpha
> 30 3          * * *           root    /usr/bin/rsnapshot beta

alpha will be run daily at 01:00 am and beta daily at 03:30 am. Is this
what you want?

> 0  3          * * 1           root    /usr/bin/rsnapshot gamma

This will be run every Monday at 03:00 ("weekly").

> 30 2          1 * *           root    /usr/bin/rsnapshot delta

This will be run on every first day of the month at 02:30 am.

You probably need something like this:

# Daily at 01:00 am
00 01         * * *           root    /usr/bin/rsnapshot alpha
# Weekly on every Monday at 03:30 am
30 3          * * 1           root    /usr/bin/rsnapshot beta
# Monthly on every first day of the month at 03:00 am
0  3          1 * *           root    /usr/bin/rsnapshot gamma
# Yearly on January 1st at 02:30
30 2          1 1 *           root    /usr/bin/rsnapshot delta

You might want to tweak the times. You could also use sync_first which
makes this a little bit easier.

J.
-- 
Tony Blair is a hypnotised self-seeking scarecrow just like all the
rest.
[Agree]   [Disagree]
                 <http://archive.slowlydownward.com/NODATA/data_enter2.html>

[toc] | [prev] | [next] | [standalone]


#186607

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2017-09-08 14:30 +0200
Message-ID<unqA1-6Yv-7@gated-at.bofh.it>
In reply to#186583
On Thu, Sep 07, 2017 at 09:40:21PM +0200, Jochen Spieker wrote:
> Pol Hallen:
> > 00 01         * * *           root    /usr/bin/rsnapshot alpha
> > 30 3          * * *           root    /usr/bin/rsnapshot beta
> 
> alpha will be run daily at 01:00 am and beta daily at 03:30 am. Is this
> what you want?

Just be careful with local time zone daylight saving time changes.
Once a year, in my time zone, those two times will occur 90 minutes
apart, instead of 150 minutes apart.  (And also once a year, they
will occur 210 minutes apart.)

[toc] | [prev] | [next] | [standalone]


#186608

Fromrhkramer@gmail.com
Date2017-09-08 17:20 +0200
Message-ID<untex-nf-1@gated-at.bofh.it>
In reply to#186607
On Friday, September 08, 2017 08:24:09 AM Greg Wooledge wrote:
> On Thu, Sep 07, 2017 at 09:40:21PM +0200, Jochen Spieker wrote:
> > Pol Hallen:
> > > 00 01         * * *           root    /usr/bin/rsnapshot alpha
> > > 30 3          * * *           root    /usr/bin/rsnapshot beta
> > 
> > alpha will be run daily at 01:00 am and beta daily at 03:30 am. Is this
> > what you want?
> 
> Just be careful with local time zone daylight saving time changes.
> Once a year, in my time zone, those two times will occur 90 minutes
> apart, instead of 150 minutes apart.  (And also once a year, they
> will occur 210 minutes apart.)

That's one reason I like to use GMT instead of local time for things "within" 
the computer--then I can decide how  I want to deal with things like time 
changes due to daylight savings time (or moving / traveling) between different 
time zones.

[toc] | [prev] | [next] | [standalone]


#186630

FromPol Hallen <deben@fuckaround.org>
Date2017-09-09 18:10 +0200
Message-ID<unQut-7Oz-1@gated-at.bofh.it>
In reply to#186583
hello and thanks for your reply :)

well, does "delta" keeps my backup for 10 years?

thanks

> # Daily at 01:00 am
> 00 01         * * *           root    /usr/bin/rsnapshot alpha

> # Weekly on every Monday at 03:30 am
> 30 3          * * 1           root    /usr/bin/rsnapshot beta

> # Monthly on every first day of the month at 03:00 am
> 0  3          1 * *           root    /usr/bin/rsnapshot gamma

> # Yearly on January 1st at 02:30
> 30 2          1 1 *           root    /usr/bin/rsnapshot delta


-- 
Pol

[toc] | [prev] | [next] | [standalone]


#186643

FromJochen Spieker <ml@well-adjusted.de>
Date2017-09-09 23:00 +0200
Message-ID<unV17-2bp-9@gated-at.bofh.it>
In reply to#186630

[Multipart message — attachments visible in raw view] — view raw

Pol Hallen:
> 
> well, does "delta" keeps my backup for 10 years?

For your configuration: yes, I think so. I am still using rsnapshot's
old days/weeks/months method, so I do not have own experience with the
alpa/beta/gamma/delta thing.

J.
-- 
I am on the payroll of a company to whom I owe my undying gratitude.
[Agree]   [Disagree]
                 <http://archive.slowlydownward.com/NODATA/data_enter2.html>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web