ccztux / glsysbackup Goto Github PK
View Code? Open in Web Editor NEW:floppy_disk: glsysbackup is a feature rich (rotation, logging, encryption, renice, re-ionice,...etc.) bash backup script
License: GNU General Public License v3.0
:floppy_disk: glsysbackup is a feature rich (rotation, logging, encryption, renice, re-ionice,...etc.) bash backup script
License: GNU General Public License v3.0
Add more configuration options to tar...
Add a switch to decide the user if root privileges are required or not.
Add a backup rotating feature.
There are many functions which makes no sense to be functions. We will move the code from the functions in the main section.
Change locking mechanism to be atomic, to avoid race conditions, when locking will be done.
All timestamps generated with bash printf builtin has the following value:
1970-01-01 01:00:00
Bash version:
GNU bash, Version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Change echo builtin to printf builtin to reduce the used shell builtins to a minimum, after we have implemented #27
Remove unnecessary $ signs from arithmetic variables.
Ignore some shellcheck warnings which are interpreted wrong.
We should add more syspackage managers to create installed packages.
Nothing more to say... ;)
Change shebang to /usr/bin/env bash
to be more generic.
It would be great if glsysbackup could handle config files.
Add the possibility to execute a script before creating the backup and after creating the backup.
Add a new config variable when monthly backups should be rotated.
Travis CI should be ok and also manual tests.
I think it makes more sense.
Rework and optimize the logHandler function.
An incremental backup feature would be great.
Pgrep returns all pids of running instances from glsysbackup.
Add an config array to let the users add individual tar options.
Add a new config option, to let the user decide, if glsysbackup should break if pre- or post-backup-scripts were terminated unsuccessfully.
We should add a check of the configuration variables and break if something is misconfigured.
Rework functions checkLocalFileExists und checkLocalDirectoryExists.
Check all required binaries in one function.
Reformat code for better readability.
The installed packages file will not be included to the backup automatically.
Add a function to clean up installed packages and unencrypted backup file in case glsysbackup terminates abnormally.
Add a switch to let the user decide, if backup rotating should be done.
Make the encryption more flexible.
Change variables: script_exit_code to script_error_code and map the error codes to script exit codes.
A wrong variable is used in functions: executePreBackupScript, executePostBackupScript which results in wrong rc in the output message.
glsysbackup doesnt exit if pre- or post-backup-script was unsuccessful although it is configured to do so.
Add backup encryption feature.
Add a notification command to report the status of the backup jobs.
Add a function to check the permissions of a file.
Rework exit codes to meet exit codes with special meanings.
Add the possibility to set the nice and ionice level with which glsysbackup will be executed.
Add cli options and arguments to override script config like backup_filename, encrypt_backup ....
Unify naming of bash internal and script_* variables.
Remove the usage of checkTrailingSlash and removeLastChar functionality. The user is self responsible to add the exclude items correctly.
Add travis ci as a rudimentary syntax check.
Tar exists with exit code != 0 in case files, which were backuped has changed during read.
If more than one syspackage manager binary is found on the system, the user should have the possibility to configure one to use it for creating installed packages file.
We should replace the function call rotateHandler after makeBackup und execute it only in case the backup job was successful.
Add cli option to override old, leftover lock in case glsysbackup terminates abnormally.
I think it would be better if the backup filename is not configureable.
As mentioned here: #29 we should comment the whole code. Due to the late release date of version 2.0.0 i think it is at least urgently required to comment the configuration variables.
We should determine if bash version is greater equal 4.2 to use the bash builtin printf in function logHandler to generate the timestamp.
A switch to let the user decide if he wants to create and backup installed packages file would be great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.