Python script to backup databases and files.
-
Rename the file config.example.py to config.py.
-
Customize configs:
backups_dir - local directory for storing archives
delete_files_after_uploading - delete local files after uploading on the FTP server
Targets backup (backups_targets):
databases - the list of databases to create a list dump. If you specify a string instead of a list "__ALL__" then all databases will be backup
databases_excludes - a list of databases that you want to exclude for backup. (Use for 'databases': '__ ALL__')
dirs - a list of absolute paths to folders for which you want to backup
dirs_excludes - a list of absolute paths to folders that should be excluded from backups
3.Run:
python backup.py