check if user paths from user-input exists and differs
- CLI-mode: check if user paths from user-input exists - CLI-mode: prevent identical source and target path
This commit is contained in:
parent
f9dc51340c
commit
eb8e536617
4 changed files with 50 additions and 25 deletions
|
@ -9,7 +9,11 @@ Yes="Yes"
|
|||
|
||||
No="No"
|
||||
|
||||
welcome="Hello, first of all, which language do you prefer: German [DE] or English [EN]?"
|
||||
welcome="Hello, first of all, which language do you prefer: German or English [de/EN]?"
|
||||
|
||||
path_not_existing="Specified directory does not exist!"
|
||||
|
||||
paths_must_differ="Source dir and target dir must differ!"
|
||||
|
||||
languagepack="Perfect, the English language package is now activated. Welcome!"
|
||||
|
||||
|
@ -17,9 +21,9 @@ intromsg1="Thanks for using Backuppy to make your backups!"
|
|||
|
||||
intromsg2="The installer will now ask you a few things to adapt your backup script to your requirements."
|
||||
|
||||
rsyncopt="rsync offers various options, but to simplify the installation process, I have activated the options -a, -q and -p. \n If you want to set more options, you can do thjat in the file 'Backuppy.sh'."
|
||||
rsyncopt="rsync offers various options, but to simplify the installation process, I have activated the options -a, -q and -p.\nIf you want to set more options, you can do that in the file 'Backuppy.sh'."
|
||||
|
||||
excludefile1="Now I need to know if you want to exclude one or more files/directories from your backups.\nThen you can adjust this in the 'exclude.txt'.\nThere you can exclude directories and files in the format '/directory' '/file.txt'.\nDo you want to exclude files/directories or not? [Y/N]"
|
||||
excludefile1="Now I need to know if you want to exclude one or more files/directories from your backups.\nThen you can adjust this in the 'exclude.txt'.\nThere you can exclude directories and files in the format '/directory' '/file.txt'.\nDo you want to exclude files/directories or not? [y/N]"
|
||||
|
||||
excludefile2="Perfect, then you can enter your files/directories to be excluded in the file 'exclude.txt' after completing the installation of Backuppy."
|
||||
|
||||
|
@ -30,12 +34,12 @@ srcdir1="Now we come to one of the most important parts of installing Backuppy:"
|
|||
srcdir2="Which directory do you want to save (e.g. the home directory)? Please enter an absolute path (e.g. '/home/username/')."
|
||||
|
||||
srcdir3_1="you have typed in the following source path: "
|
||||
srcdir3_2="if this path is not correct, adjust it in the file 'Backuppy.sh'."
|
||||
srcdir3_2="(You may adjust this any time in the file 'Backuppy.sh'.)"
|
||||
|
||||
targetdir1="Now I need to know where Backuppy should save your backups, i.e. the target directory. \n Please enter this carefully and in the same way as for the source directory."
|
||||
|
||||
targetdir2_1="you have typed in the following destination path:"
|
||||
targetdir2_2="if this path is not correct, adjust it in the file 'Backuppy.sh'."
|
||||
targetdir2_2="(You may adjust this any time in the file 'Backuppy.sh'.)"
|
||||
|
||||
collect="Now we have almost reached the end of the installer. I will now create the rsync command for you and show it to you.\n If you notice a mistake, just cancel the installer and start again from the beginning.\nNote: I recommend that you download Backuppy completely again in this case."
|
||||
|
||||
|
|
|
@ -9,15 +9,19 @@ Yes="Ja"
|
|||
|
||||
No="Nein"
|
||||
|
||||
path_not_existing="Der angegebene Pfad existiert nicht!"
|
||||
|
||||
paths_must_differ="Quell- and Zielpfad dürfen nicht identisch sein!"
|
||||
|
||||
languagepack="Perfekt, nun ist das deutsche Sprachpaket aktiviert. Willkommen!"
|
||||
|
||||
intromsg1="Danke, dass du Backuppy nutzt, um deine Backups zu erstellen!"
|
||||
|
||||
intromsg2="Der Installer wird dich nun einige Dinge abfragen, um dein Backup-Skript an deine Anforderungen anzupassen."
|
||||
|
||||
rsyncopt="rsync bietet verschiedene Optionen an, um das Ganze jedoch zu vereinfachen, habe ich die Optionen -a, -q und -p aktiviert. \n Wenn du mehr einstellen willst, kannst du das in der Datei 'Backuppy.sh' machen."
|
||||
rsyncopt="rsync bietet verschiedene Optionen an, um das Ganze jedoch zu vereinfachen, habe ich die Optionen -a, -q und -p aktiviert.\nWenn du mehr einstellen willst, kannst du das in der Datei 'Backuppy.sh' machen."
|
||||
|
||||
excludefile1="Nun muss ich noch wissen, ob du ein oder mehrere Dateien/Verzeichnisse vom Backup ausschliessen möchtest.\nDann kannst du das in der 'exclude.txt' anpassen.\nDort kannst du dann im Format '/Verzeichnis' '/Datei.txt' Verzeichnisse und Dateien ausschliessen.\nMöchtest du Dateien/Verzeichnisse ausschliessen oder nicht? [J/N]"
|
||||
excludefile1="Nun muss ich noch wissen, ob du ein oder mehrere Dateien/Verzeichnisse vom Backup ausschliessen möchtest.\nDann kannst du das in der 'exclude.txt' anpassen.\nDort kannst du dann im Format '/Verzeichnis' '/Datei.txt' Verzeichnisse und Dateien ausschliessen.\nMöchtest du Dateien/Verzeichnisse ausschliessen oder nicht? [j/N]"
|
||||
|
||||
excludefile2="Perfekt, dann kannst du nach der Fertigstellung der Installation von Backuppy deine auszuschliessenden\nDateien/Verzeichnisse in der Datei 'exclude.txt eintragen."
|
||||
|
||||
|
@ -28,12 +32,12 @@ srcdir1="Nun kommen wir zu einem der wichtigesten Teile der Installation von Bac
|
|||
srcdir2="Welches Verzeichnis möchtest du sichern (z.B. das Homeverzeichnis)? Bitte gib einen absoluten Pfad (z.B. '/home/username/') an."
|
||||
|
||||
srcdir3_1="du hast folgenden Quellpfad eingetippt: "
|
||||
srcdir3_2="wenn dieser Pfad nicht stimmen sollte, dann passe ihn in der Datei 'Backuppy.sh' an."
|
||||
srcdir3_2="(Der Pfad kann jederzeit in der Datei 'Backuppy.sh' angepasst werden.)"
|
||||
|
||||
targetdir1="Nun muss ich noch wissen, wo Backuppy dein Backup ablegen soll, das Zielverzeichnis also.\nBitte tippe dieses gewissenhaft und auf die Weise wie beim Quellverzeichnis ein."
|
||||
|
||||
targetdir2_1="du hast folgenden Zielpfad eingetippt:"
|
||||
targetdir2_2="wenn dieser Pfad nicht stimmen sollte, dann passe ihn in der Datei 'Backuppy.sh' an."
|
||||
targetdir2_2="(Der Pfad kann jederzeit in der Datei 'Backuppy.sh' angepasst werden.)"
|
||||
|
||||
collect="Nun sind wir fast am Ende des Installers angelangt. Ich erstelle nun den rsync-Befehl für dich und zeige ihn\ndir nachher nochmal.\nWenn dir da etwas auffallen sollte, brich den Installer einfach ab und fange nochmal von Vorne an.\nAchtung: ich empfehle dir, Backuppy in diesem Fall nochmal komplett neu zu installieren."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue