Skip to content

Instantly share code, notes, and snippets.

@ucalyptus2
Created December 25, 2022 20:55
Show Gist options
  • Save ucalyptus2/ef46e8d66273021eddf2d9feb52c7bd5 to your computer and use it in GitHub Desktop.
Save ucalyptus2/ef46e8d66273021eddf2d9feb52c7bd5 to your computer and use it in GitHub Desktop.
move files from /home or /scratch to /project or vice versa, without altering the group id. Don't use cp or mv for this, instead use this.
rsync -axvH --no-g --no-p $1 $2
#rsync -axvH --no-g --no-p $HOME/mae $HOME/projects/def-amiilab/$USER/ is an EXAMPLE
#code is same for project to home/
#using this doesn't change the gid from project group to user group. project group always has more storage
#see https://docs.alliancecan.ca/wiki/Frequently_Asked_Questions#Moving_files_between_scratch_and_home_filesystems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment