[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about backuping multiply dirs
Hello
Here is couple outputs that should be helpful..
root@lemon:/etc# tarsnap --list-archives
test.london
mybackup
now there is 'mybackup' while it should be backup-%date right?
(test.london is just something I created today for testing)
Also when I do this:
tarsnap -tv -f mybackup |grep '/var'
lrwxrwxrwx 0 root root 0 Aug 31 20:48 etc/motd -> /var/run/motd
lrwxrwxrwx 0 root root 0 Aug 31 23:01
etc/fonts/conf.d/30-defoma.conf ->
/var/lib/defoma/fontconfig.d/fonts.conf
lrwxrwxrwx 0 root root 0 Aug 31 23:01
etc/pango/pangox.aliases -> /var/lib/defoma/pango.d/pangox.aliases
Nothing with /var there.. Date might be weird too, but there is also
chance that there was no changes from that date on files..
On Sun, Oct 30, 2011 at 11:42 PM, Colin Percival <cperciva@tarsnap.com> wrote:
> 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
>
--
Amar Ćosić
amar.cosic@gmail.com