blob: e26d5afdc254e342e6a4bec66132610d7522f1e2 [file] [log] [blame]
Lei YU84749672021-12-15 14:31:10 +08001#!/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
7SYNCLIST=/etc/synclist
8DEST_DIR=/run/media/rwfs-alt/cow
9
10while read l; do
11 echo rsync -a -R "${l}" "${DEST_DIR}"
12 rsync -a -R "${l}" "${DEST_DIR}"
13done < ${SYNCLIST}