From b8093ce1a9b1557b9ffddfd13757e59ac63eaaaf Mon Sep 17 00:00:00 2001 From: akanealw Date: Sat, 6 Apr 2024 20:41:52 -0500 Subject: [PATCH] modified for scott --- restic.zip | Bin 0 -> 8345 bytes restic/restic-sftp-scott/export-etc.sh | 4 +++ .../restic-sftp-scott/export-home-wettsten.sh | 4 +++ restic/restic-sftp-scott/export-opt.sh | 4 +++ restic/restic-sftp-scott/export-root.sh | 4 +++ .../restic-sftp-scott/restic-sftp-backup.sh | 31 ++++++++++++++++++ restic/restic-sftp-scott/restic-sftp-init.sh | 8 +++++ 7 files changed, 55 insertions(+) create mode 100755 restic.zip create mode 100755 restic/restic-sftp-scott/export-etc.sh create mode 100755 restic/restic-sftp-scott/export-home-wettsten.sh create mode 100755 restic/restic-sftp-scott/export-opt.sh create mode 100755 restic/restic-sftp-scott/export-root.sh create mode 100755 restic/restic-sftp-scott/restic-sftp-backup.sh create mode 100755 restic/restic-sftp-scott/restic-sftp-init.sh diff --git a/restic.zip b/restic.zip new file mode 100755 index 0000000000000000000000000000000000000000..72b3c9f0d2894e1ed078e7d65e9d1391a38df4a4 GIT binary patch literal 8345 zcmchcc{r47*ucjUW8X&hWy+pqQbO6I>`Ru0s5D26WyV%y%U)>gQXyF;5s4DnB8u#V zgoJF-B4qy#-#ZS+WF~X|`Mz;IGjq9~_x;`X{odPikFg#FB?N?folZf)H@0R25l)v}r9B+B86eBw zFT#npDahtU&S-?K^S@GoL8fpNJbVG&fChH@0}J|xE9|^o(e9p7cAf|TXwy_g8v3q(MvfZSs{)0TAIw5K##H&ECg|c=o8-hZ%x)&Ajluwji zRaiW-(EY_Xqv&<{yByp8Ph}|BLZ<^y)y*A{oqJ0U-J)~@8J0f{fKAAC- z??6$xj+(^2=-iBXw4qoy!u-*dk3r#;hN7Sf5=S4+0#Nw=>wQ3%l5IM1jGZjrMCp6 z4{Pb-`H!|nyL$e=+WN7`TSw|`X>9;$J8s3RxdAo~0M@?UZS9UmY8_hbHT*@cY0#pn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TAWpW_rI`PX2ti`UK1J)b;$mgUA&Q(HEUxvfeIJie_Ce zI@qq3gc&P_$?1xz?>7S)BH1(blYU&H>z$40#(<-UFU=V_1xM{Ho#LGYV+T@`2S$W* z$vvax`kDp{u-THyB4?ArSqa&nTCebRJI%og3nGyjrO|jLEMFD1tA|uuU z5twPS_!qRa;))~Xkni1n1@@LcZ0g2cA);7zrKTf~3>@Z;7i$R&UYKWaPvsgv1L@$V zmJ*SotO|*d{EF~U{yv>-)A_M&-q!Tdi5_z^b}VxoE01up$$imlmww$X^;m2@&sRsm zC2BH{(1yjVXCE$)mJEXiE!+h8dWP2Naoa2880HtJsJLGCSXt{}GS(v_R|WlP;E3yH za4+V6KDN>~?M4d#0+E3@L5dXNm(Z8{0R4Y|?RI09jW!9lA9rJ6U~Sfg?U5xuVv=k( z#GeM6Te1fNw>R5HYv(J@hQ{~a~j2Wr4SpS zZczdOLd72_zja{v$f~0ZU{XlJDJVV?2|VE6i}yc@{h@inhqo;y(364_4l(iJqCg$q z1^!RRgO5b`A7v(mB%DOzBfED;Zgwm9%=Z#%5K>ISVIn>=9LTlA)ZEc$Y#1JBH1Od~ z+7j+a5)nDJI&*>rI#rC#7M9ShgkS*YO4Rh-prl&qHrUj8$0OovWmPgfl37U^4Ja(GEY_ z9;fU)=HTmE`h6;d6q<0TgpXDSy5&Ej3FEX>u_~MtkZ@Rp5A53wNF++nJ#~p7MI;;o z;S)V+h^e?UMmI)6__lS1#ruryV!!@LNkImh7e- ngoh1$@;zXNM}kZwNXvUzJc)Dn03{0q;sO33K!l(-jtBn>h70aw literal 0 HcmV?d00001 diff --git a/restic/restic-sftp-scott/export-etc.sh b/restic/restic-sftp-scott/export-etc.sh new file mode 100755 index 0000000..8d1bffe --- /dev/null +++ b/restic/restic-sftp-scott/export-etc.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc" diff --git a/restic/restic-sftp-scott/export-home-wettsten.sh b/restic/restic-sftp-scott/export-home-wettsten.sh new file mode 100755 index 0000000..78d6d2c --- /dev/null +++ b/restic/restic-sftp-scott/export-home-wettsten.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/akanealw" diff --git a/restic/restic-sftp-scott/export-opt.sh b/restic/restic-sftp-scott/export-opt.sh new file mode 100755 index 0000000..32b590d --- /dev/null +++ b/restic/restic-sftp-scott/export-opt.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt" diff --git a/restic/restic-sftp-scott/export-root.sh b/restic/restic-sftp-scott/export-root.sh new file mode 100755 index 0000000..a705afb --- /dev/null +++ b/restic/restic-sftp-scott/export-root.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root" diff --git a/restic/restic-sftp-scott/restic-sftp-backup.sh b/restic/restic-sftp-scott/restic-sftp-backup.sh new file mode 100755 index 0000000..c584729 --- /dev/null +++ b/restic/restic-sftp-scott/restic-sftp-backup.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" + +# backup /home/wettsten +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/wettsten" +restic unlock +restic backup /home/wettsten --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /etc +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc" +restic unlock +restic backup /etc --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /opt +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt" +restic unlock +restic backup /opt --no-cache -v +restic unlock +restic forget --keep-last 25 --prune + +# backup /root +export RESTIC_REPOSITORY="sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root" +restic unlock +restic backup /root --no-cache -v +restic unlock +restic forget --keep-last 25 --prune diff --git a/restic/restic-sftp-scott/restic-sftp-init.sh b/restic/restic-sftp-scott/restic-sftp-init.sh new file mode 100755 index 0000000..5466e05 --- /dev/null +++ b/restic/restic-sftp-scott/restic-sftp-init.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export RESTIC_PASSWORD="benEatsBananas!" + +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/home/wettsten init +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/etc init +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/opt init +restic -r sftp:root@resticsftp:/mnt/data/backups/resticbackups/changemepls/root init