ecodev-core 0.0.7__py3-none-any.whl → 0.0.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ecodev-core might be problematic. Click here for more details.
- ecodev_core/backup.py +2 -2
- {ecodev_core-0.0.7.dist-info → ecodev_core-0.0.8.dist-info}/METADATA +1 -1
- {ecodev_core-0.0.7.dist-info → ecodev_core-0.0.8.dist-info}/RECORD +5 -5
- {ecodev_core-0.0.7.dist-info → ecodev_core-0.0.8.dist-info}/LICENSE.md +0 -0
- {ecodev_core-0.0.7.dist-info → ecodev_core-0.0.8.dist-info}/WHEEL +0 -0
ecodev_core/backup.py
CHANGED
|
@@ -39,8 +39,8 @@ def backup(backed_folder: Path, nb_saves: int = 5) -> None:
|
|
|
39
39
|
Backup db and backed_folder: write the dump/tar on the backup server and erase old copies
|
|
40
40
|
"""
|
|
41
41
|
timestamp = datetime.now().strftime('%Y_%m_%d_%Hh_%Mmn_%Ss')
|
|
42
|
-
_backup_db(Path.cwd() / f'
|
|
43
|
-
_backup_files(backed_folder, Path.cwd() / f'
|
|
42
|
+
_backup_db(Path.cwd() / f'db.{timestamp}.dump', nb_saves)
|
|
43
|
+
_backup_files(backed_folder, Path.cwd() / f'files.{timestamp}.tgz', nb_saves)
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
def _backup_db(db_dump_path: Path, nb_saves: int) -> None:
|
|
@@ -4,7 +4,7 @@ ecodev_core/app_rights.py,sha256=RZPdDtydFqc_nFj96huKAc56BS0qS6ScKv4Kghqd6lc,726
|
|
|
4
4
|
ecodev_core/app_user.py,sha256=qXvu0GOm2fAY_KxjkPEUIw7Rb9uxm2kvyFvcTTBQvEg,2949
|
|
5
5
|
ecodev_core/auth_configuration.py,sha256=ZjEB-N5HTo2jaEljwrh6q64Lh5qZ1NuKk8bbpIEcdYc,433
|
|
6
6
|
ecodev_core/authentication.py,sha256=aujpCPzHLG2aHIREcJHdoWX9qnre5Gpz-tluqkFWfoo,7900
|
|
7
|
-
ecodev_core/backup.py,sha256=
|
|
7
|
+
ecodev_core/backup.py,sha256=9YZ79LkbLMSSoBJFmTr8u9_OPBbDmwasrmCJpqb7lkg,3055
|
|
8
8
|
ecodev_core/check_dependencies.py,sha256=aFn8GI4eBbuJT8RxsfhSSnlpNYYj_LPOH-tZF0EqfKQ,6917
|
|
9
9
|
ecodev_core/custom_equal.py,sha256=2gRn0qpyJ8-Kw9GQSueu0nLngLrRrwyMPlP6zqPac0U,899
|
|
10
10
|
ecodev_core/db_connection.py,sha256=ha2YVVQQwQ5WCyrUnaKq4LSaXoPGGbh19xKRbr438U8,1773
|
|
@@ -19,7 +19,7 @@ ecodev_core/permissions.py,sha256=dMaRQyjrF8Y51gkbkFvFsGVdzQGLZtA72IQ7REYamxg,32
|
|
|
19
19
|
ecodev_core/pydantic_utils.py,sha256=e3GH50JmcpTmd2UgrB94QSwWOlOCW3WIlVdyX9C4T-U,741
|
|
20
20
|
ecodev_core/read_write.py,sha256=auJ5bBJTVGkLRkiP_vZxVCX64B0Y-9qpsaDhovHmbas,996
|
|
21
21
|
ecodev_core/safe_utils.py,sha256=uTHzLnKBoV_MiFsI65X-WYmgzLpIBH5Cio80KSLd6wg,5933
|
|
22
|
-
ecodev_core-0.0.
|
|
23
|
-
ecodev_core-0.0.
|
|
24
|
-
ecodev_core-0.0.
|
|
25
|
-
ecodev_core-0.0.
|
|
22
|
+
ecodev_core-0.0.8.dist-info/LICENSE.md,sha256=jebQDe1ib9LAODuNvcSoo2CoqS6P0_q8--mMTICh_kI,1074
|
|
23
|
+
ecodev_core-0.0.8.dist-info/METADATA,sha256=j-x0wfGU0wh4BDR7sXJCQNiX-ghybxvqrv04myO5K-Q,3257
|
|
24
|
+
ecodev_core-0.0.8.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
25
|
+
ecodev_core-0.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|