Skip to content

os-nextcloud-backup Only back up when local file is newer than remote#5213

Open
Nuadh123 wants to merge 8 commits intoopnsense:masterfrom
Nuadh123:os-nextcloud-backup_do_not_update_file_unless_newer
Open

os-nextcloud-backup Only back up when local file is newer than remote#5213
Nuadh123 wants to merge 8 commits intoopnsense:masterfrom
Nuadh123:os-nextcloud-backup_do_not_update_file_unless_newer

Conversation

@Nuadh123
Copy link
Contributor

Builds on top of #5200

Checks local filemtime, compares with remote file getlastmodified, only uploads if filemtime > getlastmodified

@Nuadh123
Copy link
Contributor Author

This will break setups that rely on nextcloud plugin "retention", as it will stop uploading the same content every day to the current file.

@Nuadh123
Copy link
Contributor Author

This also fixes a "bug" (more of an annoyance), where the backup upload completes, but raises an exception, due to the upload code using the curl_request function that only accepts http code 200, 201 and 207 as success..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants