adjusted rclone logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jblu 2023-08-26 14:23:36 -05:00
parent f8331bfbae
commit e1ffc66b71

View File

@ -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