mode="incremental"
if [ ! -d "$backpath" ]; then
- printf "FEHLER: %s existiert nicht!\n" "$backpath"
+ printf "FEHLER: Verzeichnis %s existiert nicht!\n" "$backpath"
exit 1
fi
}
BackupPathes()
{
+ if [ ! -f "pfad-$remoterechner" ]; then
+ printf "FEHLER: pfad-%s existiert nicht!\n" "$remoterechner"
+ fi
+
for pfad in $(cat pfad-$remoterechner.txt); do
if [ "$pfad" == "virsh" ]; then
BackupVMs
BackupRemotePC()
{
if [ ! -f "rechner" ]; then
- printf "FEHLER: file rechner not exists!\n"
+ printf "FEHLER: Datei rechner existiert nicht!\n"
exit 1
fi
local rech=""
+
for rech in $(cat rechner); do
CreateBackupFolderRemotePC
GetHardLinkOpts