Matthew Penner
|
04b9ef69a1
|
run gofumpt
|
2021-11-15 10:37:56 -07:00 |
|
Matthew Penner
|
d8df353ce8
|
replace deprecated ioutil function calls
|
2021-11-15 10:24:52 -07:00 |
|
Matthew Penner
|
5cd43dd4c9
|
archive: keep timestamps when extracting
|
2021-09-01 09:54:41 -06:00 |
|
Matthew Penner
|
3c54c1f840
|
break everything
- upgrade dependencies
- run gofmt and goimports to organize code
- fix typos
- other small tweaks
|
2021-08-02 15:07:00 -06:00 |
|
Matthew Penner
|
31ff3f8b56
|
server(fs): keep file mode when extracting archive
|
2021-07-15 15:37:38 -06:00 |
|
Matthew Penner
|
29b2d6826a
|
archive: fix socket files aborting backups
|
2021-07-12 10:17:56 -06:00 |
|
Julien Tant
|
35b2c420ec
|
add decompress tests
|
2021-04-25 16:44:54 -07:00 |
|
Dane Everitt
|
daaef5044e
|
Correctly determine name for archive files when decompressing; closes pterodactyl/panel#3296
|
2021-04-25 15:36:00 -07:00 |
|
Dane Everitt
|
0676a82a21
|
Add better error handling for filesystem
|
2021-04-17 13:29:18 -07:00 |
|
Dane Everitt
|
4b244e96fb
|
Fix .rar file decompression; closes pterodactyl/panel#3267
|
2021-04-17 13:13:37 -07:00 |
|
Matthew Penner
|
0e3778ac47
|
transfers: use backup archiver
|
2021-03-07 11:04:15 -07:00 |
|
Matthew Penner
|
5c56ddf5d6
|
fs: only mkdir and chown if not exists
|
2021-02-10 13:58:47 -07:00 |
|
Matthew Penner
|
683c766d0f
|
fs: fix potential panic when chowning a file
|
2021-02-05 13:30:02 -07:00 |
|
Dane Everitt
|
adc0732af3
|
Better error handling and logging for restorations
|
2021-01-30 18:43:35 -08:00 |
|
Dane Everitt
|
6ef0bd7496
|
Get general concept for backup resotration using a unified interface implemented
|
2021-01-18 21:20:58 -08:00 |
|
Dane Everitt
|
66b6f40b61
|
Fix import cycle issue
|
2021-01-17 21:05:51 -08:00 |
|
Dane Everitt
|
7dd0acebc0
|
Initial untested pass at restoring from local backups
|
2021-01-16 18:06:22 -08:00 |
|
Dane Everitt
|
2968ea3498
|
Modify stat to embed os.FileInfo differently and update file content reader
|
2021-01-16 12:03:55 -08:00 |
|
Dane Everitt
|
67ecbd667a
|
Minor improvements to logic around decompression
|
2021-01-16 11:48:30 -08:00 |
|
Dane Everitt
|
d45a159456
|
Fix tests
|
2021-01-12 20:07:00 -08:00 |
|
Dane Everitt
|
e9e70b6081
|
Better error handling; skip file when unarchiving
|
2021-01-10 17:01:41 -08:00 |
|
Dane Everitt
|
b10e4dd437
|
Better error handling for access to denylist files
|
2021-01-10 16:43:33 -08:00 |
|
Dane Everitt
|
2c1b211280
|
Add base idea for denying write access to certain files; ref pterodactyl/panel#569
|
2021-01-10 16:33:39 -08:00 |
|
Dane Everitt
|
c228acaafc
|
Massive refactor of SFTP system now that it is deeply integrated with Wings
|
2021-01-10 14:25:39 -08:00 |
|
Dane Everitt
|
d6e189df5e
|
Update commentary
|
2020-12-27 16:53:40 -08:00 |
|
Dane Everitt
|
68749616ad
|
Ignore symlink errors
|
2020-12-27 16:30:00 -08:00 |
|
Matthew Penner
|
2cf24994d9
|
Uncomment important code
|
2020-12-27 13:56:45 -07:00 |
|
Matthew Penner
|
3a7c4822f8
|
Improve logged stacktraces
|
2020-12-27 13:55:58 -07:00 |
|
Matthew Penner
|
640e30de8a
|
Ignore symlinks with missing target, add better backup logging, update copyright year to 2021
|
2020-12-27 12:54:18 -07:00 |
|
Matthew Penner
|
e75118e0f0
|
Maybe this will fix shit?
|
2020-12-27 12:21:26 -07:00 |
|
Matthew Penner
|
a4c8b8714b
|
Bump all dependencies
|
2020-12-27 11:49:08 -07:00 |
|
Dane Everitt
|
59c30c2842
|
Fix use of atomics in codebase
|
2020-12-25 17:04:18 -08:00 |
|
Dane Everitt
|
d96115325a
|
Add file helper
|
2020-12-25 13:57:26 -08:00 |
|
Matthew Penner
|
901ab1157d
|
Rework archiving logic to be more consistent and less impactful on disk IO (#79)
Co-authored-by: Dane Everitt <dane@daneeveritt.com>
|
2020-12-25 11:52:57 -08:00 |
|
Dane Everitt
|
f8282c56cb
|
Avoid race conditions from mismatched use of atomic & sync.Mutex
|
2020-12-20 13:13:10 -08:00 |
|
Dane Everitt
|
c718da20e3
|
Check disk space before trying a write from the downloader; don't make empty directories if we can't even write the file
|
2020-12-20 11:17:53 -08:00 |
|
Dane Everitt
|
9c53436470
|
Check disk before even trying to run the download
|
2020-12-20 11:08:01 -08:00 |
|
Dane Everitt
|
59a111de39
|
Invite our lord and savior emperror back to the table
|
2020-12-15 21:56:53 -08:00 |
|
Dane Everitt
|
3a26a5d39d
|
Convert all filesystem error types into the same Error struct
|
2020-12-15 20:51:13 -08:00 |
|
Matthew Penner
|
ba0a1a651e
|
Only use the permission bits for ModeBits
|
2020-11-29 16:13:07 -07:00 |
|
Matthew Penner
|
068f41393d
|
Return mode_bits when listing files in a directory
|
2020-11-29 14:20:24 -07:00 |
|
Matthew Penner
|
f62f714863
|
Add chmod endpoint to server files
|
2020-11-29 13:07:45 -07:00 |
|
Matthew Penner
|
de51fd1c51
|
Error handling improvements (#71)
* Remove `emperror.dev/errors`, remove all `errors#Wrap` and `errors#WithStack` calls
* Improve logging in `server/backup.go`
|
2020-11-28 16:57:10 -07:00 |
|
Dane Everitt
|
8081c83de4
|
Allow disabling disk checking with 0 value for check interval
|
2020-11-12 20:50:03 -08:00 |
|
Dane Everitt
|
de0c67d066
|
Re-enable disabled tests
|
2020-11-08 15:17:47 -08:00 |
|
Dane Everitt
|
68bdcb3cbc
|
Fix error handling and get tests back to working
|
2020-11-08 15:15:39 -08:00 |
|
Dane Everitt
|
ef999a039c
|
Perhaps better error stacks for backups/archives; ref #2418
|
2020-11-08 14:07:26 -08:00 |
|
Dane Everitt
|
be9d1a3986
|
Replace error handling package with emperror; add better reporting for errors escaping server root
|
2020-11-08 13:52:20 -08:00 |
|
Matthew Penner
|
56789196d4
|
Disable flaky test so I can test cross-platform building
|
2020-10-17 15:47:30 -06:00 |
|
Matthew Penner
|
70804dd20f
|
Remoe stat_arm.go, make stat_linux.go with with both 32 and 64 bit systems
|
2020-10-17 15:45:14 -06:00 |
|