Trying to rsync from remote to local
I'm trying to rsync a folder(and all subfolders) down to a local directory, upon completion I'd like the remote folder to be deleted.
What I've come up with is
Can anyone help with this?
I think one problem is a missing trailing / on the source. Try:
rsync -rvtW --remove-sent-files -e ssh email@example.com:/remote/folder/ /local/folder
I'm not sure why you'd use the -W option with rsync. If you're going to do that, rcp would work as well and you wouldn't need rsync on both machines.
rsync -arzv -e ssh firstname.lastname@example.org:/remote/folder/ /local/folder && ssh user@example "rm -rf /remote/folder"
|All times are GMT -5. The time now is 03:14 PM.|