3 ms·
if rsync is available it's easy: rsync -av lcldir/ x:remotedir/ rsync -av x:remotedir/ lcldir/ I've gotten pretty strict about trailing slashes otherwise
by m463 7y ago
if rsync is available it's easy:
rsync -av lcldir/ x:remotedir/
rsync -av x:remotedir/ lcldir/
I've gotten pretty strict about trailing slashes otherwise I end up creating directories within directories depending on whether things exist or not