Skip to content

Instantly share code, notes, and snippets.

@look4regev
Created August 31, 2019 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save look4regev/876dc0e836c10766243627ed77371169 to your computer and use it in GitHub Desktop.
Save look4regev/876dc0e836c10766243627ed77371169 to your computer and use it in GitHub Desktop.
Move files with rsync
#!/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