Re: [BackupPC-users] restore two folders at once
2014-05-20 04:30:17
Hi all,
Is
there an easier way to do this job?
I guess there is no command to restore selected files directly
in target host like what the CGI does.
I found /usr/share/BackupPC/bin/BackupPC_restore,
what is this command for?
Thanks.
On 2014/05/20 11:24, 李欣 wrote:
Based on Carl Soderstrom's email,
these are the steps to restore a backup by command line:
- create a tar file for the backup in backup server
- send this new tar file from backup server to website
server
- untar the tar file in website server
- implement the restore
Are these steps correct?
Is there an easier way to do this job?
I guess there is no command to restore selected files directly
in target host like what the CGI does.
Thanks.
On 2014/05/19 22:07, Carl Wilhelm Soderstrom wrote:
On 05/16 07:58 , 李欣 wrote:
I am backing up two folders,
let's say /var/A_folder, and /var/www/B_folder.
When I try to restore all the files in two folders,
I found I need to select and restore all files in one folder,
and then do the same thing for the other folder.
Is there a way I can restore all files in these two folders at once?
It is possible, if you use the command-line restore tool.
here's an example:
backuppc@backuppc:~$ /usr/share/backuppc/bin/BackupPC_tarCreate -h
server.example.com -n -1 -s / /var/A_folder /var/www/B_folder | dd of=test.tar
This of course should all be on one line, the wrap here is just to fit the
mail.
'dd' is used as an example; I usually use netcat to copy the data stream
(BackupPC_tarCreate makes a data stream which must be captured) to the
machine where the restore should take place.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs _______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|