rsync and removable devices

Dario Lesca d.lesca at solinos.it
Fri Apr 20 14:23:52 UTC 2007


Il giorno ven, 20/04/2007 alle 14.42 +0100, Anne Wilson ha scritto:

> On both the box and the laptop I can see the files in konqueror 
for example into /media/key ...

> - so it is 
> mounting the drive correctly.
Yes

>   I can move files around manually.  What I 
> can't do is find an rsync command that will address the removable drive.
when it is mount, the removable device is like a folder..

then if you want sync the files on box, via removable drive, to laptop i
propose:

1) on box:
# test -d /media/key/folder-with-big-file &&
rsync -avz (--delete) /home/user/folder-with-big-file /media/key

2) unplug removable device from box, plug removable device on laptop

3) on laptop:
# test -d /media/key/folder-with-big-file &&
rsync -avz (--delete) /media/key/folder-with-big-file /home/user

(warning for --delete) 

Is this what you want?

-- 
Dario Lesca <d.lesca at solinos.it>




More information about the fedora-list mailing list