diff options
Diffstat (limited to 'env/.local/bin/scripts/backup/bbackup-browser')
| -rwxr-xr-x | env/.local/bin/scripts/backup/bbackup-browser | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/env/.local/bin/scripts/backup/bbackup-browser b/env/.local/bin/scripts/backup/bbackup-browser new file mode 100755 index 0000000..b620656 --- /dev/null +++ b/env/.local/bin/scripts/backup/bbackup-browser @@ -0,0 +1,25 @@ +cd ~/ + +fsynca () { + # t? + rsync -RUuavn --delete-after $exclude $syncfile "$target" +} + +fsyncb () { + printf "===confirm changes?\n" + read -p "y/n: " uinput + if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then + printf "\n\n\n" + rsync -RUuav --progress --delete-after $exclude $syncfile "$target" + printf "\n===end sync\n---------\n\n" + fi +} + +syncfile=".librewolf" + +target="/home/iceyrazor/mnt-backups/LINUX FILES/home/iceyrazor" +exclude="" + +fsynca + +fsyncb |
