15
16
if [ ! -x "$(which rsync 2>/dev/null)" ]
21
22
if [ ! -x "$(which lxc-info 2>/dev/null)" ]
27
28
if ! lxc-info -n ${_CONTAINER} 2>&1 | grep -qs "STOPPED"
33
34
# FIXME: Assumption of /var/lib/lxc
34
35
if ls /var/lib/lxc/${_CONTAINER}/rootfs.backup* > /dev/null 2>&1
50
51
rsync -aPHv --delete --progress /var/lib/lxc/${_CONTAINER}/rootfs.backup${_BACKUP}/ /var/lib/lxc/${_CONTAINER}/rootfs