Rsync

From DevOps Notebook
Revision as of 14:48, 25 October 2023 by MilosZ (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Copy files and directories and removed source with rsync

$ rsync --remove-source-files -rltv --progress /backup/fullbackup-20210524 /mnt/backup/2021/05/24/

Faster delete (then rm -r) of many small files with rsync

$ mkdir empty_dir
$ rsync -a --delete empty_dir/    mydirfordeletion/