mirror of
https://ghproxy.net/https://github.com/CaptainCore/captaincore.git
synced 2025-08-17 21:31:08 +08:00
👌 IMPROVE: Restic backup
This commit is contained in:
parent
666d44beb7
commit
9270035ee5
1 changed files with 5 additions and 1 deletions
|
@ -4439,7 +4439,8 @@ function vault_create() {
|
|||
|
||||
echo " - Backing up current directory (.), which now includes the SQL dump..."
|
||||
# The path to back up is just '.', as the SQL file is now inside it.
|
||||
if ! "$RESTIC_CMD" backup --verbose "." \
|
||||
if ! find . -o -print | "$RESTIC_CMD" backup --verbose "." \
|
||||
--files-from - \
|
||||
--exclude '**.DS_Store' \
|
||||
--exclude '*timthumb.txt' \
|
||||
--exclude 'debug.log' \
|
||||
|
@ -4447,6 +4448,9 @@ function vault_create() {
|
|||
--exclude 'phperror_log' \
|
||||
--exclude 'wp-content/updraft' \
|
||||
--exclude 'wp-content/cache' \
|
||||
--exclude 'wp-content/et-cache' \
|
||||
--exclude 'wp-content/.wps-slots' \
|
||||
--exclude 'wp-content/wflogs' \
|
||||
--exclude 'wp-content/uploads/sessions' \
|
||||
--exclude 'wp-content/uploads_from_s3' \
|
||||
--exclude 'wp-snapshots'; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue