LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Another try: ssh and simplebackup (https://www.linuxquestions.org/questions/linux-newbie-8/another-try-ssh-and-simplebackup-591493/)

SVwander 10-13-2007 09:29 AM

Another try: ssh and simplebackup
 
I might have posted this message before . . . but it still is confounding me. I want to use a program to backup my laptop. I have tried simple backup with ssh but I always get an error message telling me I lack permission. In the terminal what commands do I use to give it permission? Say my server is named simply "server" the file I wish to write to is /home/laptop/ I have tried:
chown -R root:users /home/laptop
chmod -R ug+rwx,o+rx-w /home/laptop
What am I doing wrong? Oh I tried simply copying a file using nuatilus while connected to the server and get about the same message.
Tim

jay73 10-13-2007 02:31 PM

You shouldn't have to modify any permissions. You just log in with

ssh ip address

and it should ask your for your password on the other machine. Of course, you need an account on the ssh server. And as you are working with accounts, your permissions will be limited to what your user is allowed to do, i.e. you will normally have access only to your home directory on the ssh server.

By the way, I don't use ssh for backups. I have set up a proftpd server so that I can transport my data over ftp. This has the advantage that you can do everything from a GUI as if you were downloading from an internet site.

SVwander 10-13-2007 08:05 PM

Quote:

Originally Posted by jay73 (Post 2923093)
You shouldn't have to modify any permissions. You just log in with

ssh ip address

and it should ask your for your password on the other machine. Of course, you need an account on the ssh server. And as you are working with accounts, your permissions will be limited to what your user is allowed to do, i.e. you will normally have access only to your home directory on the ssh server.

By the way, I don't use ssh for backups. I have set up a proftpd server so that I can transport my data over ftp. This has the advantage that you can do everything from a GUI as if you were downloading from an internet site.

I looked at Proftpd and it seems pretty complex but I will study it a little more.

I did get my permissions worked out and sbackup test function to work. I actually was able to backup my desktop system using the program BUT not my laptop. The ssh test function worked but instead of sending the backup to the server it simply copied it to /var/backup/ Not what I wanted at all. I have been told to try rsync but the manpage for it is overwhelming for someone just learning the ropes . . . and often having to RELEARN because my memory isn't what it used to be. I will keep on working on it and see if I can understand Proftpd.

Tim


All times are GMT -5. The time now is 03:38 PM.