Commit Graph

66 Commits

Author SHA1 Message Date
VetheonGames
6e6d185cb9
Merge pull request #4 from PixelRidge-Softworks/VetheonGames-patch-1
Create CODEOWNERS
2023-07-27 20:02:25 -06:00
VetheonGames
bee56cfa4f
Create CODEOWNERS
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:59:51 -06:00
VetheonGames
adcb72dec1
Merge pull request #3 from PixelRidge-Softworks/development
Update rubocop tests
2023-07-27 19:47:37 -06:00
VetheonGames
56f980d585
Merge pull request #2 from PixelRidge-Softworks/rubocop-autocorrect-9
Apply RuboCop auto-correct
2023-07-27 19:45:20 -06:00
GitHub Action
a4c9b77c1e Apply RuboCop auto-correct 2023-07-28 01:43:49 +00:00
VetheonGames
fc77d56cc8
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:43:32 -06:00
VetheonGames
43997e2c99
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:39:52 -06:00
VetheonGames
8c683e01a1
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:32:40 -06:00
VetheonGames
8b9df3af42
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:12:33 -06:00
VetheonGames
cf5088a0c0
Merge pull request #1 from PixelRidge-Softworks/VetheonGames-patch-1
Update RuboCop-Auto-correct.yml
2023-07-27 19:12:08 -06:00
VetheonGames
4031f1eb7a
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:11:58 -06:00
VetheonGames
58e984aee6
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:03:13 -06:00
VetheonGames
d8df66604b
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 19:01:36 -06:00
VetheonGames
4c75e72652
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:55:36 -06:00
VetheonGames
ee359206da
Update RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:51:56 -06:00
VetheonGames
b48e6132f0
Update and rename ruby.yml to RuboCop-Auto-correct.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:33:04 -06:00
VetheonGames
707c522df3
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:28:14 -06:00
VetheonGames
8b7784db54
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:24:53 -06:00
VetheonGames
f538c96eef
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:23:18 -06:00
VetheonGames
5377e80af3
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:12:43 -06:00
VetheonGames
59ecc362f3
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:10:50 -06:00
VetheonGames
a0718027ab
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:06:00 -06:00
VetheonGames
b4009c12aa
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:03:15 -06:00
VetheonGames
e85e286287
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:01:56 -06:00
VetheonGames
e7dbcbc099
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 18:00:45 -06:00
VetheonGames
4370b5298d
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 17:58:27 -06:00
VetheonGames
cacb91538e
Update ruby.yml
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 17:56:41 -06:00
VetheonGames
8e3e6156d2 Bring bundle up to date with upstream depends 2023-07-27 16:17:44 -06:00
VetheonGames
4c24508fe4
Update README.md
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
2023-07-27 15:35:10 -06:00
VetheonGames
4cfe697549
Fix spelling error 2023-05-03 15:42:14 -06:00
VetheonGames
5a2080e054
Update README.md 2023-05-03 14:18:36 -06:00
VetheonGames
27b1fd97b8
Update README.md 2023-05-03 14:18:15 -06:00
VetheonGames
a1ce518ba7
Update README.md 2023-05-03 14:12:58 -06:00
VetheonGames
51844b2c13
Update README.md 2023-05-03 14:05:45 -06:00
VetheonGames
07032cdb48
Rename gemfile.lock to Gemfile.lock 2023-05-03 14:04:18 -06:00
VetheonGames
0acffd58ed
Rename gemfile to Gemfile 2023-05-03 14:04:04 -06:00
VetheonGames
01e394b9bf
Rename gemfile.lock to Gemfile.lock 2023-05-03 14:03:43 -06:00
VetheonGames
8f7002ade9
Rename gemfile to Gemfile 2023-05-03 14:03:27 -06:00
VetheonGames
71f36b5ce8
Update ruby.yml 2023-05-03 14:02:34 -06:00
VetheonGames
899bbcf922 Add .bundle dir for Github tests to work proper 2023-05-03 13:55:04 -06:00
VetheonGames
8eac622e0e
Update README.md 2023-03-19 18:23:42 -06:00
VetheonGames
8c28bcb904
Update README.md 2023-03-19 18:21:44 -06:00
connorc@orbitnode.net
9a7eacf05d update mysql_database_config.rb 2023-03-19 18:19:17 -06:00
connorc@orbitnode.net
dfbe572c9e fix line too long, update gitignore 2023-03-19 17:45:01 -06:00
VetheonGames
6b2955e48a
Update README.md 2023-03-19 17:35:20 -06:00
connorc@orbitnode.net
6b2941e3a1 Refactored code to use a new Loggman class for
logging and to handle all file naming, storing logs in the backup
directory by default. Made the Loggman class delete logs older than
2 months and create new log files each week. Refactored the
MysqlDatabaseConfig and MysqlDatabaseBackup classes to use the new
Loggman class for logging and added error handling code. Updated the
upload_to_b2 method in MysqlDatabaseBackup to properly handle errors
when listing and deleting old backups in the B2 bucket.
2023-03-19 17:10:48 -06:00
connorc@orbitnode.net
3342da13c6 feat: Enhance MySQL backup script with
customizable retention and logging

    Refactor backup method to dump each database individually
    Update delete_old_backups method to remove local backups based on user-defined retention days
    Add Loggman class for logging program actions to a logfile and implement log deletion for logs older than a week
    Modify MysqlDatabaseConfig class to ask the user for local and B2 backup retention days
    Update MysqlDatabaseBackup class to use user-defined retention days for local backups
    Refactor upload_to_b2 method to delete B2 backups based on user-defined retention days
    Implement various code improvements and refactoring for better readability and maintainability
2023-03-19 16:49:18 -06:00
connorc@orbitnode.net
5b9ce0e341 Fix bug in upload_to_b2 method to delete existing
files in B2 bucket with different names before uploading new backup file.
2023-03-18 12:01:50 -06:00
connorc@orbitnode.net
44e4e9aef8 update mysql_database_backup.rb 2023-03-18 12:00:20 -06:00
connorc@orbitnode.net
b746eedac6 Add code to delete all non-matching files in a Backblaze B2 bucket before uploading a new backup file
This commit modifies the upload_to_b2 method in the MysqlDatabaseBackup class to delete all files in the specified Backblaze B2 bucket that do not match the name of the backup file being uploaded. The implementation retrieves a list of all files in the bucket using the b2 ls command and then iterates over each line to extract the name of each file. If the name of a file does not match the name of the backup file, the implementation extracts its file ID using a regular expression and then uses the b2 delete-file-version command to delete the file from the bucket. Finally, the implementation uploads the backup file to the B2 bucket.
2023-03-18 11:59:58 -06:00