-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhh_parallel.txt
24 lines (17 loc) · 1.45 KB
/
hh_parallel.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
src_path="/var/lib/libvirt/imagesraw"
dst_path="/mnt/backup/imagesraw"
parallel --gnu -j 8 --dry-run "rsync -ah --progress --inplace $src_path/{} -e 'ssh -i /root/.ssh/id_rsa' [email protected]:$dst_path/{}" ::: $(cd ${src_path} && find . -type f \( ! -iname "ubuntu-storj*" ! -iname "Dockers-2.raw" \) )
dst_path="/var/lib/libvirt/images"
src_path="/mnt/backup/imagesraw"
parallel --gnu -j 8 --dry-run "rsync -ah --progress --inplace -e 'ssh -i /root/.ssh/id_rsa' [email protected]:$src_path/{} $dst_path/{}" ::: $( ssh [email protected] "cd ${src_path} && find . -type f " )
src_path="/mnt/DATA/plex/app/videos"
dst_path="/mnt/tmp/"
parallel --gnu -j 8 --dry-run "rsync -ah --progress --inplace $src_path/{} $dst_path/{}" ::: $( cd ${src_path} && find . -type f )
src_path="/mnt/data"
dst_path="/mnt/tmp"
parallel --gnu -j 8 --dry-run "mkdir -p $dst_path/{}" ::: $( cd ${src_path} && find . -type d )
parallel --gnu -j 10 --dry-run "rsync -ah --progress --inplace $src_path/{} $dst_path/{}" ::: $( cd ${src_path} && find . -type f )
src_path="/mnt/backup/data"
dst_path="/mnt/intercambio/data-s3-aws"
parallel --gnu -j 8 --dry-run "mkdir -p $dst_path/{}" ::: $( ssh -i /root/.ssh/id_rsa [email protected] "cd ${src_path} && find . -type d ")
parallel --gnu -j 8 --dry-run "rsync -ah --progress --inplace -e 'ssh -i /root/.ssh/id_rsa' [email protected]:$src_path/{} $dst_path/{}" ::: $( cd ${src_path} && find . -type f -iname "/mnt/data/nextcloud/app/data/adri/" )