[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about backuping multiply dirs
- To: Amar Cosic <amar.cosic@gmail.com>
- Subject: Re: Question about backuping multiply dirs
- From: Colin Percival <cperciva@tarsnap.com>
- Date: Sun, 30 Oct 2011 15:42:27 -0700
- Cc: tarsnap-users@tarsnap.com
- In-reply-to: <CAOwZc0nBjodYGs1KF2K9=GMDxch-3Nz21yojzm+ijacuZMW_4w@mail.gmail.com>
- References: <CAOwZc0nBjodYGs1KF2K9=GMDxch-3Nz21yojzm+ijacuZMW_4w@mail.gmail.com>
On 10/30/11 04:43, Amar Cosic wrote:
> I just figured out tarsnap did not backup'd all dirs I told him to do.. luck me
> everything was OK with production : )
>
> Anyway, I want to backup /etc and /var/www/vhosts so I am using this in my cron
> 00 03 * * * tarsnap -c -f backup-`date +\%Y\%m\%d` /etc /var/www/vhosts
>
> However tarsnap synced only /etc ignoring /var/www/vhosts . Any tips on how to
> properly use tarsnap to backup multiply dirs?
Hmm, that looks fine to me. Of course the leading / will be stripped so
you'd need to specify "etc" or "var/www/vhosts" rather that "/etc" or
"/var/www/vhosts" when extracting.
Does this work outside of cron? Any there any error messages printed?
--
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid