Terminal command for hard-restartrsync -aP --remove-source-files /source/aa/bb/subfolder /destination/subfolder/ && rm -R
/source/aa/bb/subfolder
Command line options used:
rsync:
-a = archiveP = progress
--remove-source-files = remove the source files that were transferred successfully (not the source directory)
bash:
&& = will only execute if previous command successfulrm:
-R = recursive (remove files and directories) that way both the files and directory are removed.
No comments:
Post a Comment