From e1ffc66b71873af1bc508a6fd319b918d35f846a Mon Sep 17 00:00:00 2001 From: jblu Date: Sat, 26 Aug 2023 14:23:36 -0500 Subject: [PATCH] adjusted rclone logging --- seafile-backup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/seafile-backup.py b/seafile-backup.py index 03b6c09..95eeb5d 100644 --- a/seafile-backup.py +++ b/seafile-backup.py @@ -90,15 +90,15 @@ if db_dump: # Local rclone backup if rclone_copy: - os.system(f'rclone sync --config {rclone_config_path} --log-file={LOG_PATH} --log-level INFO -P {seafile_data_local} {seafile_data_backup}') + os.system(f'rclone sync --config {rclone_config_path} -P {seafile_data_local} {seafile_data_backup}') # Remote rclone backup if rclone_push: if not os.path.exists(rclone_config_path): os.system(f"rclone config create --config {rclone_config_path} {rclone_remote} {rclone_backend} provider={rclone_provider}\ endpoint={rclone_endpoint} env_auth=true") - os.system(f'rclone sync --config {rclone_config_path} --log-file={LOG_PATH} --log-level INFO -P\ - {seafile_data_local} {rclone_remote}:{rclone_remote_path}') + os.system(f'rclone sync --config {rclone_config_path} -P \ + {seafile_data_local} {rclone_remote}:{rclone_remote_path}') # Remote restic backup if restic_push: @@ -116,13 +116,13 @@ if zip_db_files: # offload db file if offload_db_files: - os.system(f'rclone copy --config {rclone_config_path} --log-file={LOG_PATH} --log-level INFO -P\ + os.system(f'rclone copy --config {rclone_config_path} -P \ {db_dump_tmp_path} {rclone_remote}:{rclone_remote_db_path}') # cleanup if cleanup: os.system(f'rm {db_dump_tmp_path}*sfdb_*') - os.system(f'Rclone delete --config {rclone_config_path} --log-file={LOG_PATH}\ + os.system(f'Rclone delete --config {rclone_config_path} -P \ {rclone_db_retention} {rclone_remote}:{rclone_remote_db_path}') # healthcheck