View Single Post
  #183  
Old 3rd June 2013, 17:48
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Default

Quote:
Originally Posted by Ripeed View Post
I am trying to restorade dir by:
./back-res.sh dir /var/vmail/domain.tld 2013-04-06 /tmp

and I get:
./back-res.sh: line 575: /tmp/tmpbck/maildata: No such file or directory

So I whant restore backup to /tmp not in that folfer above.

Abyway if I create folde /tmp/tmpbck/maildata I get:
Null message body; hope that's ok

From the script:

# 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...
__________________
__________________
go0ogl3
--
Keep your work safe. Better backup than sorry! Download the latest version of the backup and restore script. See more info here.
Reply With Quote