cp or rsync

Asked by general_aw@btinternet.com

Can anyone advise where I am going wrong here.

I wish to sync or copy a folder of sub dir, from a folder on a NTFS to Ubuntu 9.05 desktop of same name. I am very rusty on shell scripts.
Tried these, not really working at all.
I expected a short root folder *.* to work, but not at all.

; rsync -v /media/MEM-D/MyDocs-D/disp/*.* /home/tony/Desktop/disp

; cp -vr /media/MEM-D/MyDocs-D/disp/mm/*.* /home/tony/Desktop/dis/mm

; cp -vrub /media/MEM-D/MyDocs-D/disp/*.* /home/tony/Desktop/disp/*.*

; cp -vr /media/MEM-D/MyDocs-D/disp/Tfl/claim/*.* /home/tony/Desktop/disp/Tfl/claim/*.*

rsync -v /media/MEM-D/MyDocs-D/disp/Tfl/claim/*.* /home/tony/Desktop/disp/Tfl/claim/*.*

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
general_aw@btinternet.com
Solved:
Last query:
Last reply:
Revision history for this message
general_aw@btinternet.com (general-aw) said :
#1

I have solved this for the time being.
This may help others...

http://www.snapfiles.com/reviews/carbonfolder/carbonfolder.html
there is a windows file folder sync called
carbon folder desktop.
I downloaded it, set it up with WINE
and it wroked fine.
Tony

Revision history for this message
general_aw@btinternet.com (general-aw) said :
#2

I have solved this for the time being.
This may help others...

http://www.snapfiles.com/reviews/carbonfolder/carbonfolder.html
there is a windows file folder sync called
carbon folder desktop.
I downloaded it, set it up with WINE
and it worked fine.
Tony

Revision history for this message
joutlan (joutlancpa) said :
#3

I'm testing CarbonFolder now...seems to be a winner....how about MS SyncToy 2.0? I installed CarbonFolder with Crossover Office.

Revision history for this message
Bart de Koning (bratdaking) said :
#4

Try to leave out the stars, that is a typical windows thingy:
rsync -av /media/MEM-D/MyDocs-D/disp/ /home/tony/Desktop/disp/

If you do not know how a program works, wou can always try --help or you can look it up by reading the manual:
man rsync
or
man cp

Point of advise: do not try to use windows programs for important stuff like making copies or backups, they are definitely not familiar with typical linux things, and although wine (or crossover) are very good in interpreting windows programs, it is still an interpreter and makes still a lot of errors, so if you can do the same thing with a linux compiled programme stick to the linux one, and last but not least there are more powerful tools preinstalled on your linux system (like rsync or cp). If you do not want to use the command line stick to the GUIs (nautilus can do this too by just copy and paste, or if you need to synchronise try conduit).

Btw. this is a question area for the BackinTime programme, I like to answer questions about rsync or cp, because they are the backbone of bit, but a discussion about synchronizing programmes is a bit out of place here...

Revision history for this message
general_aw@btinternet.com (general-aw) said :
#5

Thank you for this!
I did try to use it without asterisks, and found it worked fine, but I think I misunderstood by the label what it does.
I recall checking with man, the flags, and guessed the name sync indicted it would synchronize two folders, this it does not do unless I make short script using both ways tasking. like

rsync -av /media/MEM-D/MyDocs-D/disp/ /home/tony/Desktop/disp/
rsync -av /home/tony/Desktop/disp/ /media/MEM-D/MyDocs-D/disp/
which means a two pass job. Its fine, but seems inefficient.
Is there a flag to do it both ways, I didn't see one?
Thank you . Tony

Revision history for this message
general_aw@btinternet.com (general-aw) said :
#6

Thank you for this!
I did try to use it without asterisks, and found it worked fine, but I think I misunderstood by the label what it does.
I recall checking with man, the flags, and guessed the name sync indicted it would synchronize two folders, this it does not do unless I make short script using both ways tasking. like

rsync -av /media/MEM-D/MyDocs-D/disp/ /home/tony/Desktop/disp/
rsync -av /home/tony/Desktop/disp/ /media/MEM-D/MyDocs-D/disp/
which means a two pass job. Its fine, but seems inefficient.
Is there a flag to do it both ways, I didn't see one?
Thank you . Tony