Backup from lxplus without root files


Since the space allocated for scratch in lxplus is limited, its a good idea to copy old files to a PC or somewhere else.  Since the root files are too big, its a time and resource consuming task to copy them. Moreover these root files can be reproduced easily or in many cases the root files are not needed anymore. This post shows how to copy your files to a remote PC after omitting all the root files.

There are many different ways to do this. One option is to use the exclusive option of rsync .

I would prefer to delete the root files locally and the copy the folder. For that

Step 1: Make a copy of your folder:
cp folder /tmp/username/folder
Step2: Delete all root files from the new folder:
find /tmp/username/folder -name  "*.root"  -print0 | xargs  -0 rm
Step3: Copy the new folder

Job done

Advertisements

Leave a comment

Filed under CMS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s