-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChapter4.txt
86 lines (74 loc) · 2.49 KB
/
Chapter4.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
>for i in *
>do
>tar -cz -f $i\.tar.gz $i
>done
>for i in *.tar.gz
>do
>touch *.*
>done
>for i in *.*
>do
>mv ./*.* ./new/path/to/file/
>done
>for i in *
>do
>mv ./* ./new/path/to/folder/
>done
>cp -r ./path/to/source path/to/destination
>for i in EtOHMix00 EtOHMix20 EtOHMix30 EtOHMix40 EtOHMix50 EtOHMix60 EtOHMix70 EtOHMix80 EtOHMix90 EtOHMix100 12.20.2013
>do
>for j in top itp dat mdp tpr pbs sh gro
>do
>find /fs/lustre/cwr0408/$i -name "*.$j" -size -1024k | xargs tar cfvz $i$j.tar
>done
>done
>for i in EtOHMix00 EtOHMix20 EtOHMix30 EtOHMix40 EtOHMix50 EtOHMix60 EtOHMix70 EtOHMix80 EtOHMix90 EtOHMix100 12.20.2013
>do
>find /fs/lustre/cwr0408/$i -name "*.top" -o -name "*.itp" -o -name "*.dat" -o -name "*.mdp" -o -name "*.tpr" -o -name "*.pbs" -o -name "*.sh" -o -name "*.gro" -size -1024k | xargs tar cfvz $iALL.tar
>done
>find . -size -100Mb -exec cp -p --parents -t/Users/cwr0408/Desktop/copia/ {} +
>cd /
>scp -r [email protected]:/fs/lustre/cwr0408 /scratch/gfm12
rsync -auv -e ssh --progress /source/dir/ [email protected]:/dest
#PBS -N CreatingTARBackups
#PBS -j oe
#PBS -m e
#PBS -M [email protected]
#PBS -l walltime=7:00:00
#PBS -l nodes=1:ppn=12
#PBS -S /bin/bash
>set -vx
#The purpose of this script it to create tar files for each of the main alcohol
#content folders in the scratch space. One of these cop-ies then goes to my personal
#laptop as a backup and another onto the lab desktop.
>cd /fs/lustre/cwr0408/
>tar -cvf EtOHMix100_2.24.2014.tar.gz ./EtOHMix100
>tar -cvf EtOHMix80_2.24.2014.tar.gz ./EtOHMix80
>tar -cvf EtOHMix70_2.24.2014.tar.gz ./EtOHMix70
>tar -cvf EtOHMix50_2.24.2014.tar.gz ./EtOHMix50
>tar -cvf EtOHMix00_2.24.2014.tar.gz ./EtOHMix00
#PBS -N CreatingTARBackups
#PBS -j oe
#PBS -m e
#PBS -M [email protected]
#PBS -l walltime=7:00:00
#PBS -l nodes=1:ppn=12
#PBS -S /bin/bash
>set -vx
#The purpose of this script it to create tar files for each of the main alcohol
#content folders in the scratch space. One of these cop-ies then goes to my personal
#laptop as a backup and another onto the lab desktop.
>cd /fs/lustre/cwr0408/
>now="$(date +'%d_%m_%Y')"
>printf "%s\n" "$now"
>for dir in *
>do
>tar -cvf $dir\_$now\.tar.gz ./$dir
>done
>for i in EtOHMix00 EtOHMix20 EtOHMix30 EtOHMix40 EtOHMix50 EtOHMix60 EtOHMix70 EtOHMix80 EtOHMix90 EtOHMix100 12.20.2013
>do
>for j in top itp dat mdp tpr pbs sh gro
>do
>find /fs/lustre/cwr0408/$i -name "*.$j" -size -1024k | xargs tar cfvz $i$j.tar
>done
>done