PDA

View Full Version : how move backup file from SSH



seachen
08-02-2008, 03:24 PM
i have a backup file inside SSH.

may i know how to do move it to my directadmin user_backups directory in order i can restore it from DA.

can somebody guide me?

thank you

nobaloney
08-03-2008, 01:56 PM
inside SSH makes no sense. Do you mean you used scp to upload a backup file? If not, what do you mean?

You can shell into your server and as root:

mv /path/to/backupfile /desired/path/to/backupfile

Note that depending on how you got the folder to the server to begin with, you may need to change it's ownership to that of the domain you're trying to restore.

Jeff

daz
08-04-2008, 05:01 PM
I think he means that he has ssh'ed into a remote server to retrieve the backup and now needs to move it to his new server to restore the user.

If that is the case, you can use scp to copy it from server to server via ssh.
scp /path/to/backup.file.tar.gz user@ remote.server.com:/path/to/place/backup.file.tar.gz

(the space between 'user@' and 'remote' is just to stop the forum thinking it is an email address, don't put the space in)

Hope it helps.

nobaloney
08-05-2008, 10:29 PM
daz, if you use advanced reply you can turn off automatically parse links in text and the forum won't think it's an email address :).

Jeff