Commit graph

79 commits

Author SHA1 Message Date
Gavin D'souza
45ec8ed485 fix: Sider 2020-09-28 19:18:14 +05:30
Gavin D'souza
95ab58fa3d chore: Optimized imports 2020-09-28 19:13:57 +05:30
Gavin D'souza
26be4a2604 fix: Verbosity. Show Backup summary, always 2020-09-28 19:12:19 +05:30
Gavin D'souza
be2d41915a fix: Make dirs if dont exist 2020-09-25 15:24:03 +05:30
Gavin D'souza
a098cd0055 fix: Folder creation failures, click.(s)echo 2020-09-25 14:07:14 +05:30
Gavin D'souza
ab3b574e53 Merge branch 'develop' of github.com:frappe/frappe into compress-files 2020-09-21 11:11:52 +05:30
Gavin D'souza
bbdb05378b fix: Deprecate site_config_backup_path in favour of backup_path_conf 2020-09-15 17:30:26 +05:30
Afshan
5377d65cad fix: removed print statements 2020-09-15 16:40:24 +05:30
Afshan
772153da11 fix: setting "self.setting site_config_backup_path" 2020-09-15 16:20:58 +05:30
Gavin D'souza
2a7a3ec6ee feat: Allow setting folder for where all backups can be set
Passing --backup-path {folder_name} to backup will set where the backup
files will be saved
2020-09-07 18:55:11 +05:30
Gavin D'souza
2339165d75 fix: Add command options and description 2020-09-01 20:51:13 +05:30
Gavin D'souza
bf6baff2e4 fix: Pass conf path via backup command 2020-09-01 20:16:07 +05:30
Gavin D'souza
4792556cc5 fix: Sider 2020-09-01 16:12:26 +05:30
Gavin D'souza
ec9559bf33 Merge branch 'develop' of github.com:frappe/frappe into compress-files 2020-09-01 16:01:24 +05:30
Gavin D'souza
b5252d11b9 feat: Compress private and public files during backup 2020-09-01 15:58:58 +05:30
mergify[bot]
c8016584b0
Merge pull request #11358 from gavindsouza/consistency-is-key
fix(backups): Allow naming conf file via BackupGenerator
2020-09-01 09:52:52 +00:00
mergify[bot]
16e3cb9f9e
Merge pull request #11314 from gavindsouza/safe-take-backups
fix: Create backups folder if doesn't exist
2020-08-31 10:48:24 +00:00
gavin
e860ac1108
fix: Don't raise FileExistsError if directory already exists
Co-authored-by: Aditya Hase <aditya@adityahase.com>
2020-08-31 15:14:20 +05:30
Gavin D'souza
afe5959963 fix: Unbreaking change for kwarg backup_path_conf 2020-08-31 14:30:33 +05:30
Gavin D'souza
ae8201cc1c fix: Just copy the contents of the files instead of parsing it 2020-08-26 12:08:51 +05:30
Gavin D'souza
cbaa795c20 fix(backups): Allow naming conf file via BackupGenerator 2020-08-26 11:57:03 +05:30
mergify[bot]
7ce4013068
fix: if db_type is not defined then set default to 'mariadb' (bp #11346) (#11349)
(cherry picked from commit 927cd03341c33ffb82e5db373066a7ba239c1491)

Co-authored-by: Saurabh <saurabh@erpnext.com>
2020-08-25 13:05:49 +05:30
Gavin D'souza
022b6e356b fix: Create backups folder if doesn't exist
Backups fail silently if the default `backups` folder doesn't exist
under private
2020-08-19 15:11:39 +05:30
Gavin D'souza
c2ea55b0c0 style: Black 2020-08-14 17:22:48 +05:30
Gavin D'souza
8d745a97ed fix: Get latest available backup obeying older_than 2020-08-07 21:54:50 +05:30
Gavin D'souza
5a52d54211 fix: fetch correct backup files 2020-08-07 12:47:07 +05:30
Gavin D'souza
727a2b13bf fix: fetch latest backups
updated behaviour of fetch latest backups. doesnt take new backups
and accepts no args
2020-07-29 14:28:45 +05:30
Prssanna Desai
9e88b7c28d
Merge pull request #11086 from gavindsouza/fetch-backups-api 2020-07-24 13:06:29 +05:30
gavin
047280013d
fix: Fetch latest files filtered by names (#11056) 2020-07-23 18:42:44 +05:30
Gavin D'souza
0ba3fb5a92 fix: proper sequence of backups 2020-07-22 15:53:10 +05:30
Gavin D'souza
220b56f0a0 feat: API to fetch the latest backup available
Take a backup if it doesnt exist with the required expiry
2020-07-21 21:20:06 +05:30
Sahil Khan
94bfc16bfb fix: declare site_config_backup_path variable before referencing 2020-06-29 19:30:43 +05:30
Revant Nandgaonkar
ec881a4977 fix: remove unused variable 2020-06-27 20:47:53 +05:30
Revant Nandgaonkar
1bfa56cd0c feat: backup and restore postgres site 2020-06-27 16:01:30 +05:30
Revant Nandgaonkar
86ee3bae1f fix: site_config backup file naming
naming matches other names
{time_stamp}-{site_slug}-{file_name}
2020-06-24 12:26:46 +05:30
Sahil Khan
912a811ac1 chore: consistent naming for site_config backups 2020-06-23 14:29:16 +05:30
Chinmay Pai
3a6a03f4c9
chore: use common timestamp 2020-06-22 19:54:24 +05:30
Sahil Khan
2a303d0ffd feat: take site_config backup
Co-authored-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-06-22 17:00:03 +05:30
Gavin D'souza
fd9fd7c940 fix: backwards compatible verbose flag 2020-05-22 12:12:14 +05:30
Gavin D'souza
716ae57b29 style: sort imports and spacing 2020-05-20 18:01:32 +05:30
Gavin D'souza
931e35b554 fix: handle verbose kwarg in BackupGenerator 2020-05-20 17:59:08 +05:30
Gavin D'souza
3fcc15685a fix: dont show any output unless verbose set 2020-05-14 13:13:29 +05:30
Suraj Shetty
6efce72a3a fix(backup): Use fallback dbport if no port is set for a site 2020-04-28 09:21:48 +05:30
Fumin
580fa4a144
fix: backups on mariadb listening on other ports
Previously, databases not listening on the default 3306 port are not being backup, due to port information not passed to mysqldump.
2020-04-26 04:59:21 +08:00
Saurabh
f1ba214b0b feat: merge gzip and mysqldump to speedup backup (#8524) 2019-10-21 15:24:26 +05:30
Aditya Hase
6b72faf44f style: Linting fixes (#6809)
* style: Remove unused imports

* style: Remove unused local variables
2019-01-23 16:39:55 +05:30
Saurabh
fbf66336fb [hotfix][urgent] fix backup compression (#5418) 2018-04-09 15:18:55 +05:30
Ameya Shenoy
a8f9a652e1 dropbox backup not ablt to find filepath (#5406) 2018-04-07 19:55:01 +05:30
Saurabh
4e98f1689e [fix] breakdown backup process into two parts #5365 (#5390) 2018-04-05 18:24:19 +05:30
Rushabh Mehta
80679f1b2f Merge pull request #4135 from mbauskar/backup
[minor] change backup filename format to DDMMYY_HHMMSS_SITE_DATABASE.*
2017-09-20 11:22:00 +05:30