Added rclone scripts
This commit is contained in:
parent
1d7ea375c1
commit
5d79052e59
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
/usr/bin/tar -czvf /tmp/backupRclone.tar.gz /home/ /root/ /etc/ /var/backups/ /var/log/ /var/mail/ /var/pretix-data/ /var/prometheus-data/ /var/spool/ /var/www/
|
||||||
|
|
||||||
|
/usr/bin/rclone sync /tmp/backupRclone.tar.gz webservice:/backups/backupRclone.tar.gz -P --stats=1s --bwlimit 15M
|
||||||
|
|
||||||
|
/usr/bin/rm /tmp/backupRclone.tar.gz
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
source /root/.profile
|
||||||
|
|
||||||
|
/usr/bin/tar -czf /tmp/backupRclone.tar.gz /home/ /root/ /etc/ /var/backups/ /var/log/ /var/mail/ /var/pretix-data/ /var/prometheus-data/ /var/spool/ /var/www/
|
||||||
|
|
||||||
|
/usr/bin/rclone sync /tmp/backupRclone.tar.gz webservice:/backups/backupRclone.tar.gz --bwlimit 15M
|
||||||
|
|
||||||
|
/usr/bin/rm /tmp/backupRclone.tar.gz
|
Loading…
Reference in New Issue