Created
December 25, 2022 20:55
-
-
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.
This file contains hidden or 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
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