Lei YU | 8474967 | 2021-12-15 14:31:10 +0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Sync the files/dirs specified in synclist once |
| 4 | # Usually the sync-manager could sync the file once before it starts, so that |
| 5 | # it makes sure the synclist is always synced when the sync-manager is running. |
| 6 | |
| 7 | SYNCLIST=/etc/synclist |
| 8 | DEST_DIR=/run/media/rwfs-alt/cow |
| 9 | |
Adriana Kobylak | 39c7bbd | 2022-03-28 21:12:03 +0000 | [diff] [blame] | 10 | while read -r l; do |
Lei YU | 8474967 | 2021-12-15 14:31:10 +0800 | [diff] [blame] | 11 | echo rsync -a -R "${l}" "${DEST_DIR}" |
| 12 | rsync -a -R "${l}" "${DEST_DIR}" |
| 13 | done < ${SYNCLIST} |