mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
v0.17: Warn when archive directories cannot be deleted
* If an archive directory which should be empty could not be deleted backrest was throwing an error. There's a good fix for that coming, but for the time being it has been changed to a warning so processing can continue. This was impacting backups as sometimes the final archive file would not get pushed if the first archive file had been in a different directory (plus some bad luck).
This commit is contained in:
parent
be1163b948
commit
7aa6c8ecaf
@ -14,6 +14,10 @@ Simple Postgres Backup and Restore
|
||||
|
||||
## release notes
|
||||
|
||||
### v0.17: Warn when archive directories cannot be deleted
|
||||
|
||||
* If an archive directory which should be empty could not be deleted backrest was throwing an error. There's a good fix for that coming, but for the time being it has been changed to a warning so processing can continue. This was impacting backups as sometimes the final archive file would not get pushed if the first archive file had been in a different directory (plus some bad luck).
|
||||
|
||||
### v0.16: RequestTTY=yes for SSH sessions
|
||||
|
||||
* Added RequestTTY=yes to ssh sesssions. Hoping this will prevent random lockups.
|
||||
|
@ -360,7 +360,7 @@ sub archive_pull
|
||||
if ($strPath lt $strPathMax)
|
||||
{
|
||||
&log(DEBUG, "removing local archive path ${strPath}");
|
||||
rmdir($strArchivePath . "/" . $strPath) or confess &log(ERROR, "unable to remove archive path ${strPath}, is it empty?");
|
||||
rmdir($strArchivePath . "/" . $strPath) or &log(WARN, "unable to remove archive path ${strPath}, is it empty?");
|
||||
}
|
||||
|
||||
# If the dir is not empty check if the files are in the manifest
|
||||
|
Loading…
Reference in New Issue
Block a user