Created
August 31, 2019 17:04
-
-
Save look4regev/876dc0e836c10766243627ed77371169 to your computer and use it in GitHub Desktop.
Move files with rsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Example: | |
# SOURCE_PATH=/var/lib/docker/ | |
# DEST_PATH=/mnt/docker/ | |
rsync -aPHSx --remove-source-files ${SOURCE_PATH} ${DEST_PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment