mirror of
https://github.com/Sevichecc/pleroma-backup-script.git
synced 2025-04-30 08:49:31 +08:00
Update backup.sh
This commit is contained in:
parent
4f18893212
commit
60cf52d0a7
1 changed files with 8 additions and 18 deletions
26
backup.sh
26
backup.sh
|
@ -27,6 +27,13 @@ echo "4.backup to remote"
|
|||
"Secret" { send "$SECRET_ACCESS_KEY\n"; exp_continue }
|
||||
"password" { send "$PASSWORD\n" }
|
||||
}
|
||||
# 5. (optional)Keep a revision every 7 days for revisions older than 30 days
|
||||
# spawn duplicacy prune -keep 7:30
|
||||
# expect {
|
||||
# "ID" { send "$ACCESS_KEY_ID\n"; exp_continue }
|
||||
# "Secret" { send "$SECRET_ACCESS_KEY\n"; exp_continue }
|
||||
# "password" { send "$PASSWORD\n" }
|
||||
# }
|
||||
expect eof
|
||||
EOF
|
||||
|
||||
|
@ -34,21 +41,4 @@ echo "restart pleroma"
|
|||
sudo systemctl start pleroma
|
||||
echo `date +"%Y-%m-%d %H:%M:%S"` " done!"
|
||||
|
||||
# 5. (optional)Keep a revision every 7 days for revisions older than 30 days
|
||||
# echo "5.prune snapshot"
|
||||
# /usr/bin/expect <<EOF
|
||||
# set time 30
|
||||
# spawn duplicacy backup -threads 4
|
||||
# expect {
|
||||
# "ID" { send "$ACCESS_KEY_ID\n"; exp_continue }
|
||||
# "Secret" { send "$SECRET_ACCESS_KEY\n"; exp_continue }
|
||||
# "password" { send "$PASSWORD\n" }
|
||||
# }
|
||||
# spawn duplicacy prune -keep 7:30
|
||||
# expect {
|
||||
# "ID" { send "$ACCESS_KEY_ID\n"; exp_continue }
|
||||
# "Secret" { send "$SECRET_ACCESS_KEY\n"; exp_continue }
|
||||
# "password" { send "$PASSWORD\n" }
|
||||
# }
|
||||
# expect eof
|
||||
# EOF
|
||||
|
||||
|
|
Loading…
Reference in a new issue