# To restore dirs make sure you have the full backup from that month and use:
# `back-res dir /etc 2009-11-23 /`
# to restore the "/etc" dir from date 2009-11-23 to root
# `back-res dir /etc 2009-11-23 /tmp` is used to restore the "/etc" dir to /tmp
#
# `back-res dir all 2009-11-23 /`
# to restore all directories from date 2009-11-23 to root

Note: You try to restore /var/vmail/domain.tld this dir was backed-up? or it was /var/vmail or just /var ?

Try:
./back-res.sh dir /var 2013-04-06 /tmp

but this depends on your settings.

P.S.: You can safely ignore the /tmp/tmpbck/maildata error - it's a file used to send mail to you...

To restore complete /var folder is little bit risky and time consumed if i only wanna restore one mailbox /var/vmail/domain/user.There's only way then change script backup directories and add /var/vmail ? but then are double backups /var and /var/vmail.

I use the backup script on my main server running on a VDS debian. I have a mounted folder /backup that uses ssh to securely mount a remote directory on my home server at /backup as well. It works fine. I can see everything is there, log is updated, etc.

Now the issue is that my internet between home and the VDS sucks, so uploads are maximum 70kb/s more like 50kb/s ... yes I know Australia's internet sucks

My question is if I use the script on the hosted server like its meant to be:

./backup.sh dir /var 2013-09-01 /tmp

then it tries to extract the backup to my hosted server. Also if I try this:

./backup.sh dir /var 2013-09-01 /backup/tmp

trying to utilize the backup to be stored on the same server as what holds the incremental backups, it goes slow as well.

So is there a way to irrespective of where the backup came from, working on the home server run some form of backup script restore locally?

Hopefully someone can wade through my dilemma...

I will definitely be changing my script to use sub-directories because all I want is a fraction of /var and currently its 4GB of data I need to extract...