public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] rsnapshot - crontab?
@ 2013-03-15 14:37 Tanstaafl
  2013-03-15 15:31 ` covici
  2013-03-15 15:40 ` [gentoo-user] " Grant Edwards
  0 siblings, 2 replies; 4+ messages in thread
From: Tanstaafl @ 2013-03-15 14:37 UTC (permalink / raw
  To: gentoo-user

Would anyone who is using rsnapshot be willing to share their crontab 
entries?

I'm especially interested in how best to test for the 
existence/availability of a remotely mounted filesystem, and run the 
backup if it exists and abort if it doesn't.

Thanks


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] rsnapshot - crontab?
  2013-03-15 14:37 [gentoo-user] rsnapshot - crontab? Tanstaafl
@ 2013-03-15 15:31 ` covici
  2013-03-15 15:40 ` [gentoo-user] " Grant Edwards
  1 sibling, 0 replies; 4+ messages in thread
From: covici @ 2013-03-15 15:31 UTC (permalink / raw
  To: gentoo-user

Tanstaafl <tanstaafl@libertytrek.org> wrote:

> Would anyone who is using rsnapshot be willing to share their crontab
> entries?
> 
> I'm especially interested in how best to test for the
> existence/availability of a remotely mounted filesystem, and run the
> backup if it exists and abort if it doesn't.

I don't run rsnapshot directly from cron, but shell scripts for hourly,
daily, etc., where I can test return codes from mount, etc. all I want.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: rsnapshot - crontab?
  2013-03-15 14:37 [gentoo-user] rsnapshot - crontab? Tanstaafl
  2013-03-15 15:31 ` covici
@ 2013-03-15 15:40 ` Grant Edwards
  2013-03-15 15:47   ` Tanstaafl
  1 sibling, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2013-03-15 15:40 UTC (permalink / raw
  To: gentoo-user

On 2013-03-15, Tanstaafl <tanstaafl@libertytrek.org> wrote:

> Would anyone who is using rsnapshot be willing to share their crontab 
> entries?

# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXfEjZZL installed on Thu May 26 14:47:04 2011)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42
vixie Exp $)
3 0 1 * *           /usr/bin/rsnapshot monthly
3 1 * * 6           /usr/bin/rsnapshot weekly
3 3 * * *           /usr/bin/rsnapshot daily

> I'm especially interested in how best to test for the 
> existence/availability of a remotely mounted filesystem, and run the 
> backup if it exists and abort if it doesn't.

rsnapshot has an option specifically for that (which I use to handle
the case where my Firewire backup drive is disconnected or powered
down_).

From /etc/rsnapshot.conf:

# If no_create_root is enabled, rsnapshot will not automatically create the
# snapshot_root directory. This is particularly useful if you are backing
# up to removable media, such as a FireWire or USB drive.
#
no_create_root  1

-- 
Grant Edwards               grant.b.edwards        Yow! Are we THERE yet?
                                  at               My MIND is a SUBMARINE!!
                              gmail.com            



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Re: rsnapshot - crontab?
  2013-03-15 15:40 ` [gentoo-user] " Grant Edwards
@ 2013-03-15 15:47   ` Tanstaafl
  0 siblings, 0 replies; 4+ messages in thread
From: Tanstaafl @ 2013-03-15 15:47 UTC (permalink / raw
  To: gentoo-user

On 2013-03-15 11:40 AM, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> On 2013-03-15, Tanstaafl <tanstaafl@libertytrek.org> wrote:
>> I'm especially interested in how best to test for the
>> existence/availability of a remotely mounted filesystem, and run the
>> backup if it exists and abort if it doesn't.

>  From /etc/rsnapshot.conf:
>
> # If no_create_root is enabled, rsnapshot will not automatically create the
> # snapshot_root directory. This is particularly useful if you are backing
> # up to removable media, such as a FireWire or USB drive.
> #
> no_create_root  1

How did I miss that?

Thanks Grant.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-15 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-15 14:37 [gentoo-user] rsnapshot - crontab? Tanstaafl
2013-03-15 15:31 ` covici
2013-03-15 15:40 ` [gentoo-user] " Grant Edwards
2013-03-15 15:47   ` Tanstaafl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox