bash-cloud-backup is a bash script, which can be used to automate local and cloud backup in Linux/Unix machines.
Copyright Christos Pontikis http://www.pontikis.gr
License MIT https://raw.github.com/pontikis/bash-cloud-backup/master/MIT_LICENSE
ATTENTION
Version 2.* is not compatible with previous (deprecated) version 1.*
Version 1 has its own branch (version1).
More at https://github.com/pontikis/bash-cloud-backup/blob/version1/README.md
- Preserve directories permissions and ownership in tar archive #82
The solution given in Release 2.1.9 works but it leads to very large tar files. In current solution a simple tar cpvf result.tar file file2 filen is performed (without use -T backup_list)
- Preserve directories permissions and ownership in tar archive #82
- option mail_only_summary #78
- option disable_report_summary #77
- BUG FIX - Do not try to create main log directory if logfile keeping is disabled #76
- Leave blank both
logfilepathandlogfilenameif you DO NOT WANT to keep the main log file #75 - option
export_session_log_to#74
- modify report to present results at the top of the page (additionally) - problem with scrolling in huge pages in mobile devices (no way to go bottom) #55
- bash-cloud-backup tmp folder
- Bug fix:
awscli produces output with some non printing characters, somailassigns octet stream MIME-type to log report and sends an attachment #71
- option report_errors #59
- option export_errors #62
- improve docs
- Support
ioniceandnicewith commandstar,7z,gzip,mysqldump,pg_dump,aws,s3cmd#60 - Support
tricklebandwith shaper (on S3 uploads) #64 - Support of AWS Command Line Interface (AWS cli) #65
- skip-after option (do not backup ceaselessly inactive projects) #57
-
Hide root processes (protect passwords to be exposed in command line) #53
-
Custom scripts (became four) #47
You may create and use
on_backup_started.sh- before backup startedon_backup_finished.sh- after backup finished (and before Amazon S3 sync)on_s3_sync_finished.sh- after Amazon S3 syncon_logfile_created.sh- after logfile created and main script finished
(these scripts are git ignored)
- Log tar errors (without v option) #52
- Improve error reporting #48
- Security: avoid passing (MySQL, Postgresql) passwords in command line
- Simple error reporting #48
-
Postgresql support #12
-
Custom scripts #47
You may create and use
custom1.sh- after backup finished and before Amazon S3 synccustom2.sh- after Amazon S3 synccustom3.sh- after logfile created and main script finished
(these scripts are git ignored)
- Log filesize of backup file #45 (bug fix)
- Log filesize of backup file #45
- send mail report #46
- use_7z option replaced by use_compression option #41
- mysqldump_options added to backup section #37
- Consolidation of all scripts to one script: bash-cloud-backup.sh #30
- use crudini (https://github.com/pixelb/crudini) to manipulate config files
- Display elapsed time #34
- improve rotate delete
- tar options as parameter #13
- zip_file() function to init.sh #28
- Log file beautified #27
-
rotate delete became more flexible:
- setting
days_rotationto 0 is disabled - with
min_backups_in_rotation_perioda number of backups can be kept, independently of their age
- setting
-
conf/initialize.sh reorganized and renamed to conf/config.sh
-
common/init.sh added with common tasks and utility functions
- Remove deprecated scripts #23
- Redirect gzip output to log file #22
- Redirect 7z output to log file #21
- Redirect s3cmd sync output to log file #20
- Guidelines to escape special characters in passwords #17
- BUG FIX error parsing 7z_filetype variable name #18
- Script with custom commands at the end of the backup procedure #19
- change default CMD_7z to create 7z package (not zip) #15
- MIT LICENSE
- S3CMD_SYNC_PARAMS user defined (including server side encryption)
- use_s3_server_encryption deprecated (included in S3CMD_SYNC_PARAMS)
- 7z compression added
- minor changes
- Basic functionality