Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
People! First of all, excuse my english, I'm from Argentina.
Well, here is the thing. I've deployed BackupPC in a server at work, and everything is working fine.
Now, what I need to do this thing.
I have a remote server with a website and a postgres db running. I've been able to set up everything to be backed up using rsync. But I would like to make the same process to restore the backup immediately in a local server trough rsync, that has to be ready just in case of failure of the remote server. What I've tried to do is to run the DumpPostUserCmd, so whenever a dump is performed in the remote server, I can have my local server updated. What I've find out is that when you perform a restore through the web interface, the command that performs it is (using ps ax in the backuppc server):
/usr/bin/rsync is the command that the process runs in the server where I want to put the restore. Then the options, and finally, source and destination of the restoration. But, as you can see, the source is '.' but I cannot guess where to point that!!! So, any suggestions? Thanks a lot people!
So the red part, is used to log in into the remote server, where I want the folders to be restored. Then, the blue part shows what is executed in the remote server, the command rsync with the options, the source and the destination, with the source being '.' and the destination, '/path/to/restore'. This command is the one that is executed when you make a restore from the web(cgi) interface.
I know that '.' means current path. But in this case, does it refer to the current path of the local or the remote server? I've been digging into the backuppc code, but coud not find anything usefull.