You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
I tried to implement Laravel backup into a community page. 5 GB of Database + ~100 GB of files.
Of course the process is longer and of course not all files still exist at ZipArchive::close(). It is a living community that cannot be stopped for 2 hours for backup reasons.
So every backup stops with error:
Backup failed because: ZipArchive::close(): Can't open file: No such file or directory.
Because some file got unlinked in the meantime. (Yes I excludes temp folders, caches, logs, a.s.o. it is really user data, like a profile image got deleted a.s.o.)
I really prefer an encrypted zip as backup, due to DP and backup on an external services server.
Well, the only way I can think of to solve this is would be to add to the zip file step by step, maybe 1000 Files. Zip Close. If it fails scan the files again, open the zip archive to add the remaining, then continue. ZipArchive sadly seems not to support to just skip missing added files in the end, that would be the best solution to this problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem:
I tried to implement Laravel backup into a community page. 5 GB of Database + ~100 GB of files.
Of course the process is longer and of course not all files still exist at ZipArchive::close(). It is a living community that cannot be stopped for 2 hours for backup reasons.
So every backup stops with error:
Backup failed because: ZipArchive::close(): Can't open file: No such file or directory.
Because some file got unlinked in the meantime. (Yes I excludes temp folders, caches, logs, a.s.o. it is really user data, like a profile image got deleted a.s.o.)
I really prefer an encrypted zip as backup, due to DP and backup on an external services server.
Well, the only way I can think of to solve this is would be to add to the zip file step by step, maybe 1000 Files. Zip Close. If it fails scan the files again, open the zip archive to add the remaining, then continue. ZipArchive sadly seems not to support to just skip missing added files in the end, that would be the best solution to this problem.
Any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions