fix
This commit is contained in:
parent
87b787a1fa
commit
be6d80969c
@ -79,14 +79,13 @@ net-backup() {
|
|||||||
|
|
||||||
echo;echo "[Mounting.....]";echo
|
echo;echo "[Mounting.....]";echo
|
||||||
mount $NET_BACKUP $TARGET
|
mount $NET_BACKUP $TARGET
|
||||||
mkdir $TARGET/$1
|
|
||||||
|
|
||||||
if [ "$2" = "home" ]; then
|
if [ "$2" = "home" ]; then
|
||||||
homeBackup
|
homeBackup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
create-smb-snapshots "$1"
|
create-smb-snapshots "$1"
|
||||||
cp -f debian.sh $TARGET/$1/
|
cp -f debian.sh $TARGET/
|
||||||
ls $TARGET/
|
ls $TARGET/
|
||||||
umount $TARGET
|
umount $TARGET
|
||||||
}
|
}
|
||||||
@ -94,10 +93,10 @@ net-backup() {
|
|||||||
net-restore() {
|
net-restore() {
|
||||||
partitions
|
partitions
|
||||||
rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run
|
rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run
|
||||||
tar xfpv ../$ROOT_NAME-$2.tgz -C $TARGET/
|
tar xfpv $ROOT_NAME-$2.tgz -C $TARGET/
|
||||||
|
|
||||||
if [ "$3" = "home" ]; then
|
if [ "$3" = "home" ]; then
|
||||||
rsync -av --progress --delete ../home/ $TARGET/home/
|
rsync -av --progress --delete home/ $TARGET/home/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fstab
|
fstab
|
||||||
|
Loading…
Reference in New Issue
Block a user