This shows you the differences between two versions of the page.
rsycn_based_on_list.txt [2009/05/09 08:29] k2patel created |
rsycn_based_on_list.txt [2020/08/10 02:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Rsycn based on list.txt ====== | ||
- | |||
- | #### create file with name "list.txt" and add folder per line | ||
- | <code bash | rsync_bk.sh> | ||
- | #!/bin/bash | ||
- | for i in $(cat list.txt); do | ||
- | |||
- | rsync --verbose --progress --stats --compress --recursive --times --perms --links xx.yy.zz.dd::home/$i data/$i | ||
- | |||
- | done | ||
- | </code> | ||