Frequently Asked Questions: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 18: Line 18:


=== Moving files from scratch or home filesystems to project === <!--T:42-->
=== Moving files from scratch or home filesystems to project === <!--T:42-->
If you want to move files from your scratch or home space into a project space, you '''should not''' use the <tt>mv</tt> command. Instead, we recommend using the regular <tt>cp</tt>, or the <tt>rsync</tt> command with the following options:
If you want to move files from your scratch or home space into a project space, you '''should not''' use the <tt>mv</tt> command. Instead, we recommend using the regular <tt>cp</tt>, or the <tt>rsync</tt> command.
 
It is very important to run <tt>cp</tt> and <tt>rsync</tt> correctly to ensure that the files copied over to the project space have the correct group ownership. With <tt>cp</tt>, do not use the archive <tt>-a</tt> option. And when using <tt>rsync</tt>, make sure you specify the <tt>--no-g --no-p</tt> options, like so:


<!--T:43-->
<!--T:43-->
{{Command|rsync -axvpH --no-g --no-p  $HOME/scratch/some_directory $HOME/projects/<project>/some_other_directory}}
{{Command|rsync -axvpH --no-g --no-p  $HOME/scratch/some_directory $HOME/projects/<project>/some_other_directory}}
<!--T:44-->
It is very important to have the options <tt>--no-g</tt> and <tt>--no-p</tt> so that the files copied over to the project space have the correct group.


<!--T:45-->
<!--T:45-->
cc_staff
318

edits