# move backup to /var
if [ -d /home/martin/backup ] && [ ! -d /var/backups/martin ]; then
cp -a /home/martin/backup /var/backups/martin
+ rm -rf /home/martin/backup
fi
# install already shipped debs
# completely
cd /etc
if [ ! -d /etc/.bzr ]; then
- rsync -r martin@piware.de:backup/desktop-etc/.bzr .
for i in passwd group shadow fstab; do
cp $i $i.originst
done
- bzr revert --no-backup
+ bzr get bzr+ssh://martin@piware.de/home/martin/backup/desktop-etc /desktop-etc
+ cp -av /desktop-etc/* /etc/
+ cp -av /desktop-etc/.bzr/ /etc/
+ rm -rf /desktop-etc
fi
# only restore dchroot part into fstab