[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about backuping multiply dirs



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