Ubuntu Cannot download file from a server to local directory

I made a dump on my server's database and it was saved successfully.

I am using this command to try to download this file to my Desktop:

scp root@138.68.146.22:dblocal.sql.gz ~/Desktop

However after typing my password, the file is not downloaded and on the terminal its name is displayed.

1

1 Answer

I am not really sure, but I think you have to use the full path to your db file in the scp command. Additionally it is not very nice to download files to your Desktop folder. I would for example suggest the following command:

scp root@138.68.146.22:/fullpath-to-your-file ~/Download

This also presumes that root login is permitted on the the remote site. If not, you have to use another user, and ensure that this user has rights to read the db file.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like