Skip to content

Instantly share code, notes, and snippets.

@Mohitsharma44
Last active June 14, 2019 16:42
Show Gist options
  • Select an option

  • Save Mohitsharma44/61ab169a7574a6458bcc0d2e7c3d2ed5 to your computer and use it in GitHub Desktop.

Select an option

Save Mohitsharma44/61ab169a7574a6458bcc0d2e7c3d2ed5 to your computer and use it in GitHub Desktop.
Rsync backup for NFS
# Use this instead of -a when backing up to NFS drive since the NFS server
# doesn't always have same UID or GID as the system that the drive is mounted on.
# This will preserve time but not ownership
rsync -rlptDP --ignore-existing source/ dest/
@Mohitsharma44

Copy link
Copy Markdown
Author

To get files with particular extensions:

rsync -rlptDP --ignore-existing --include='*.csv' --exclude='*' source/ dest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment