You are not logged in.

#1 2009-08-20 13:52:12

pritchard92
Member
Registered: 2009-06-19
Posts: 62

rysnc not sending files, but acts like it is..

This ones got me really confused.

I'm trying to backup my laptop's most important folders, like /etc/ and /home/, to my arch linux server. I somehow managed to backup my /etc directory, but since then, its not working.

It looks like it worked, sometimes even giving accurate-ish "speed up" reports at the end. But when I SSH into my server, and run "ls -l" in the folder everything was meant to be sent to, theres nothing there.

This is one of the commands I've used, using the "push" method.

rsync --progress -avz /home/ -e 'ssh -p 1984 root@192.168.1.70:/backup/laptop2002/home'

From what I know, this is meant to compress my /home contents, preserving permission and whatnot thanks to the -a switch, sending the contents of said /home directory to my password-less, yet ssh-key-secured server on 192.168.1.70, dumping it in the /backup/laptop2002/home directory. But it doesnt. It reports that it has, but doesnt.

This is the other one I tried, running this on the server to "pull" the /home folder from my laptop.

rsync --progress -avz -a 'ssh -p 1984 root@192.168.1.68:/home/ /backup/laptop2002/home/'

Still no joy. It's asthough I'm running rsync with the -n switch to simulate the backup. But obviously I'm not.

Im totally baffled. It's really quite frustrating.
Any ideas?
Thanks.

Offline

#2 2009-08-20 14:17:44

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: rysnc not sending files, but acts like it is..

The -e option should only contain "ssh -p1984", not any hostnames/paths.

To synchronize your local folder to the remote server use:

rsync --progress -avz -e 'ssh -p1984' /backup/laptop2002/home/ root@192.168.1.68:/home/

To synchronize the remote folder to your local machine use:

rsync --progress -avz -e 'ssh -p1984' root@192.168.1.68:/home/ /backup/laptop2002/home/

Offline

#3 2009-08-20 15:12:10

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: rysnc not sending files, but acts like it is..

Oh, wow. Thank you very much! smile

Offline

Board footer

Powered by FluxBB