From dff3ee6a817fe1ab529e31ddedf7a3f46ef46639 Mon Sep 17 00:00:00 2001 From: Nils Date: Sat, 9 Nov 2024 04:23:25 +0100 Subject: [PATCH] initial commit --- backup_script.bat | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 backup_script.bat diff --git a/backup_script.bat b/backup_script.bat new file mode 100644 index 0000000..19030aa --- /dev/null +++ b/backup_script.bat @@ -0,0 +1,11 @@ +cd C://users//forss + +tar -cvpzf backup/backup.tar.gz ./Documents ./Videos ./Pictures ./Music ./Downloads D:/Documents D:/Pictures D:/Videos + +scp backup/backup.tar.gz nils@%SERVER_IP%:~/backup_tar/ + +ssh nils@%SERVER_IP% cp backup_tar/backup.tar.gz /backup/ + +ssh nils@%SERVER_IP% tar -xpvf /mnt/USB/backup/backup.tar.gz -C /backup/ + +ssh nils@%SERVER_IP% rm -rf backup_tar/backup.tar.gz \ No newline at end of file -- 2.30.2