1*84749678SLei YU#!/bin/bash 2*84749678SLei YU 3*84749678SLei YU# Sync the files/dirs specified in synclist once 4*84749678SLei YU# Usually the sync-manager could sync the file once before it starts, so that 5*84749678SLei YU# it makes sure the synclist is always synced when the sync-manager is running. 6*84749678SLei YU 7*84749678SLei YUSYNCLIST=/etc/synclist 8*84749678SLei YUDEST_DIR=/run/media/rwfs-alt/cow 9*84749678SLei YU 10*84749678SLei YUwhile read l; do 11*84749678SLei YU echo rsync -a -R "${l}" "${DEST_DIR}" 12*84749678SLei YU rsync -a -R "${l}" "${DEST_DIR}" 13*84749678SLei YUdone < ${SYNCLIST} 14