184749678SLei YU#!/bin/bash
284749678SLei YU
384749678SLei YU# Sync the files/dirs specified in synclist once
484749678SLei YU# Usually the sync-manager could sync the file once before it starts, so that
584749678SLei YU# it makes sure the synclist is always synced when the sync-manager is running.
684749678SLei YU
784749678SLei YUSYNCLIST=/etc/synclist
884749678SLei YUDEST_DIR=/run/media/rwfs-alt/cow
984749678SLei YU
10*39c7bbdbSAdriana Kobylakwhile read -r l; do
1184749678SLei YU    echo rsync -a -R "${l}" "${DEST_DIR}"
1284749678SLei YU    rsync -a -R "${l}" "${DEST_DIR}"
1384749678SLei YUdone < ${SYNCLIST}
14