HI Andrew

Yes, as mentioned, you might have needed quoting around the string or or the whole cmd depending of the shell.

Mike
On 2025-06-21 7:41 pm, Andrew Greig wrote:


On 21/6/25 20:02, Mike O'Connor wrote:
Hi Andrew

rsync -aPSvx --dry-run --delete /media/andrew/SP PHD U3/01-Music Collection/ /home/andrew/Music/

You might need to add quotes around the source and destination if you running a shell which has issues with that sort of thing.

If your happy you can remove the dry-run command

Mike



Do I have to do something like escaping the spaces in the source, here is what I got:

rsync -aPSvx --dry-run --delete  /media/andrew/SP PHD U3/01-Music Collection/ /home/andrew/Music/
sending incremental file list
rsync: [sender] link_stat "/media/andrew/SP" failed: No such file or directory (2) rsync: [sender] link_stat "/home/andrew/PHD" failed: No such file or directory (2) rsync: [sender] change_dir "/home/andrew/U3" failed: No such file or directory (2) rsync: [sender] change_dir "/home/andrew/Collection" failed: No such file or directory (2)

sent 19 bytes  received 12 bytes  62.00 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]

Thanks

Andrew




_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]


_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to