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,14 +90,14 @@ if db_dump:
# Local rclone backup # Local rclone backup
if rclone_copy: 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 # Remote rclone backup
if rclone_push: if rclone_push:
if not os.path.exists(rclone_config_path): 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}\ os.system(f"rclone config create --config {rclone_config_path} {rclone_remote} {rclone_backend} provider={rclone_provider}\
endpoint={rclone_endpoint} env_auth=true") endpoint={rclone_endpoint} env_auth=true")
os.system(f'rclone sync --config {rclone_config_path} --log-file={LOG_PATH} --log-level INFO -P\ os.system(f'rclone sync --config {rclone_config_path} -P \
{seafile_data_local} {rclone_remote}:{rclone_remote_path}') {seafile_data_local} {rclone_remote}:{rclone_remote_path}')
# Remote restic backup # Remote restic backup
@ -116,13 +116,13 @@ if zip_db_files:
# offload db file # offload db file
if offload_db_files: 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}') {db_dump_tmp_path} {rclone_remote}:{rclone_remote_db_path}')
# cleanup # cleanup
if cleanup: if cleanup:
os.system(f'rm {db_dump_tmp_path}*sfdb_*') 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}') {rclone_db_retention} {rclone_remote}:{rclone_remote_db_path}')
# healthcheck # healthcheck