Commit Graph

47 Commits

Author SHA1 Message Date
Jeremy Gardais f01126f935
Add new job-init phase 2022-03-24 09:53:29 +01:00
Jeremy Gardais 701b1fc6f4
Exclude lock files/directories from backup 2022-02-09 10:39:56 +01:00
Jeremy Gardais 2ffb67cc35
Redirect debug_message to temp log file 2022-02-08 11:47:28 +01:00
Jeremy Gardais 03c713d836
Reorder debug messages 2022-02-07 15:07:53 +01:00
Jeremy Gardais 1b6946edc3
Replace cut with sed to get the last two extensions 2022-02-07 14:56:21 +01:00
Jeremy Gardais 9f9ef99f1a
Add new vzdump hook to hardlink latest backup 2022-02-03 14:33:08 +01:00
Jeremy Gardais a63675f4b9
Increase sleeping delay to start an LXC CT 2022-01-24 07:32:56 +01:00
Jeremy Gardais 54cf9ba91e
Print error message without DEBUG 2022-01-17 07:56:55 +01:00
Jeremy Gardais c5acd253ac
Set full path to pct 2021-11-16 12:03:28 +01:00
Jeremy Gardais 4b491ed2d4
New script to upgrade an LXC template
Test if it's a Proxmox host

Call define_vars function

Verify if the ct_id is available on the host

Add color to important value in DEBUG mode

Function to verify current LXC container state

New function to start the container

Add option to define sleep_delay

Function to upgrade the container

Keep output only if DEBUG mode

Function to stop the container

error_message function and exit if CT is running

Working script to upgrade an LXC CT (a template)
2021-11-15 15:22:32 +01:00
Jeremy Gardais b89daa4f3c
Use long-format for options 2021-11-12 11:58:07 +01:00
Jeremy Gardais bfc1660c68
Remove cmd already runned with latecommand script 2021-11-12 11:53:52 +01:00
Jeremy Gardais b5089fd4df
Add TODO to replace TARFILE with TARGET 2021-08-05 10:22:30 +02:00
Jeremy Gardais a3c56bcaf7
Fix last exit code with 0 (success)
If it reaches the end, it a success.
2021-04-14 10:17:22 +02:00
Jeremy Gardais bffe5b0a6e
Fix default value for user and group… 2021-04-14 10:15:52 +02:00
Jeremy Gardais d1b2bc5e48
Allow to override default owner and group of backup files 2021-04-14 10:11:54 +02:00
Jeremy Gardais 0fc60ef863
Allow second directory to duplicate backups 2021-04-12 19:37:17 +02:00
Jeremy Gardais 47cab2c053
Rename "local" directory to "first" directory 2021-04-12 19:16:03 +02:00
Jeremy Gardais 1ebd39d86a
Clean backups older than retention time
Command can use default retention time or the one passed as argument.
2021-04-12 19:06:47 +02:00
Jeremy Gardais de9548d9e9
Limit access to backup files 2021-04-12 16:45:18 +02:00
Jeremy Gardais a032babff6
Force hard link (remove existing destination file) 2021-04-12 16:22:42 +02:00
Jeremy Gardais e872fdafaf
Exit if /etc/pve doesn't exist 2021-04-12 16:19:03 +02:00
Jeremy Gardais b8d3c9554f
Create archive and hard link to latest file 2021-04-12 16:18:34 +02:00
Jeremy Gardais 49d0740b7e
Use `test -d` instead of `find` to check directory 2021-04-12 15:54:21 +02:00
Jeremy Gardais a8cadc298e
Manage backup destination path with argument 2021-04-12 15:53:47 +02:00
Jeremy Gardais 72e9c7a98c
Init new script to backup Proxmox /etc/pve 2021-04-12 15:20:00 +02:00
Jeremy Gardais 04a72b1f0d
Use os-release to determine Debian version codename 2020-08-06 17:00:52 +02:00
Jeremy Gardais 15ae72554b
New Proxmox vzdump script for Buster LXC template 2020-04-09 11:41:49 +02:00
Jeremy Gardais 77bca840f5
Update to Debian Buster 2020-04-09 11:29:46 +02:00
Jeremy Gardais 4799406fac Ensure to run the appropriate late_command script
According to Debian's version.
2019-07-05 22:48:29 +02:00
Jeremy Gardais 0dc5c0f8fb Fix locale for the script 2019-07-05 22:34:33 +02:00
Jeremy Gardais dfeeab974a Fix aptitude command 2019-07-05 22:24:09 +02:00
Jeremy Gardais a26d42d904 Add a script to fix interfaces issue with Proxmox
Proxmox don't parse interfaces.d. See :
https://forum.proxmox.com/threads/anyway-to-support-interfaces-d.34739/
2019-07-04 19:39:23 +02:00
Jeremy Gardais fe6bd07b01 Add a template hook for default Proxmox install 2019-04-26 21:25:48 +02:00
Jeremy Gardais 0eea33d04e Run a full-upgrade for LXC template 2019-04-26 21:25:19 +02:00
Jeremy Gardais e659a0eb1e Ensure to update APT repositories 2019-04-26 19:34:06 +02:00
Jeremy Gardais 850aa4c472 Ensure to install aptitude on LXC container 2019-04-26 19:33:25 +02:00
Jeremy Gardais 6da1d04fb1 Change Proxmox templates storage 2018-08-02 15:40:15 +02:00
Jeremy Gardais 20222ea1d0 End list of options for rm command 2018-03-26 14:06:26 +02:00
Jeremy Gardais b4fb6674fd Clean old journald logs 2018-03-26 14:04:26 +02:00
Jeremy Gardais 041d5cd05d Need to escape a backslash 2018-02-21 09:45:38 +01:00
Jeremy Gardais 59a66af233 Add another missing ";"… 2018-02-21 09:19:34 +01:00
Jeremy Gardais 40ae5debe6 Add a missing ";"… 2018-02-16 09:52:09 +01:00
Jeremy Gardais 8d8527d4e2 Add a script to prepare a container to becoming a debian template 2018-02-13 13:58:04 +01:00
Jeremy Gardais dd83740f16 Add a hook to create Debian Stetch template 2018-02-13 11:48:34 +01:00
Jeremy Gardais 2add0a1412 The vzdump hook became specific to Debian Jessie
It will link the last tar file to a better name.
2018-02-13 11:37:33 +01:00
Jeremy Gardais 999bc04056 Add proxmox hook to copy a dump as a template 2016-12-09 16:08:26 +01:00