Compare commits

..

48 commits

Author SHA1 Message Date
3e2c04dc91 Turn off gzip compression 2024-11-23 14:10:30 +01:00
c05a5f011c Create backup whitelist for docker-compose 2024-11-22 17:31:52 +01:00
b780b1a20e Add a profile for the server 2024-11-22 17:31:18 +01:00
208f77f323 Add options for enabling docker-compose services 2024-11-22 17:31:08 +01:00
49cf6f6161 Add scripts for installing woodpecker 2024-11-22 17:29:45 +01:00
e1a744b823 Add scripts for installing wekan 2024-11-22 01:54:50 +01:00
ea3d326f5f Add scripts for installing TrackMania server 2024-11-20 00:33:09 +01:00
766b0504cf Replace yq with go-yq 2024-11-20 00:30:08 +01:00
e9a57fafad Add scripts for installing TeamSpeak 2024-11-13 18:18:15 +01:00
896bd319f2 Add scripts for installing ryot 2024-11-13 17:39:21 +01:00
bd6bb9935f Add scripts for installing nextcloud 2024-11-13 16:25:39 +01:00
5256a95f46 Restructure service overrides 2024-11-13 16:22:57 +01:00
7b4fd8008c Add scripts for installing Minecraft 2024-11-10 13:00:23 +01:00
faddb0013b Add settings for allowing VPN access in lxc 2024-11-10 12:56:48 +01:00
b2a593a795 Improve look & feel of lxc config 2024-11-10 12:56:34 +01:00
30c1d9f3a4 Add scripts for installing jellyfin 2024-11-10 12:33:36 +01:00
32eef7792f Add a script for installing forgejo 2024-11-07 23:58:06 +01:00
46a4f1cc4a Add scripts for installing drone 2024-11-07 18:33:16 +01:00
4566ca107b Allow configuring services with multiple domains 2024-11-07 11:54:50 +01:00
c50d6ddd2e Allow specifying domains per service 2024-11-07 03:31:48 +01:00
bd9faadec0 Fetch FQDN from configuration 2024-11-07 03:01:45 +01:00
9396e489d7 Generate nginx config using printf 2024-11-07 02:40:29 +01:00
07e759193c Add a function for initializing the service installation 2024-11-07 02:39:37 +01:00
7f777c16ed Rename public API 2024-11-06 19:34:27 +01:00
d07518fac9 Add /etc/localtime file in test container 2024-11-06 03:33:01 +01:00
88a46b14c8 Add a script for installing anki-sync 2024-11-06 03:32:45 +01:00
9fc504b0bf Add a script for installing nginx 2024-11-06 01:13:50 +01:00
f4e72d9c4c Add a script for testing the Arch installation 2024-11-05 17:47:45 +01:00
73e465ccf9 Add scripts for installing Arch 2024-11-05 17:47:39 +01:00
01346dc4e3 Add a function for declaring software dependencies 2024-11-05 17:45:13 +01:00
df2edcba7f Ask for config profile in tmux 2024-11-05 17:39:06 +01:00
6a3a829037 Uninstall nixpkgs only after install 2024-11-04 01:34:43 +01:00
49e5ebdabb Initialize and dispose actions properly 2024-11-04 01:34:22 +01:00
8729b8ed76 Inherit CONFIG_NAME properly 2024-11-03 23:41:32 +01:00
ed35546f7f Prevent early disposal 2024-11-03 23:41:17 +01:00
e17ab90d82 Download nixpkgs only if necessary 2024-11-03 22:37:33 +01:00
4e0f8a4e8e Fix permissions issues 2024-11-03 22:37:22 +01:00
fc2bccd548 Rename hooks 2024-11-03 22:36:30 +01:00
7d44c655dc Change global git config as root 2024-11-03 22:34:39 +01:00
87924fe725 Create a separate config file for desktops 2024-11-03 22:33:44 +01:00
33b957bbaa Initialize installer properly 2024-11-03 22:32:47 +01:00
eb0e00619a Add a script for setting up vaultwarden 2024-11-03 03:14:47 +01:00
d789800639 Handle nix cache properly 2024-11-03 00:39:23 +01:00
e203f93c6b Allow fetching program config with named args 2024-11-02 22:45:22 +01:00
608b7a9e51 Add scripts for backing up the home 2024-11-02 21:18:00 +01:00
406e284273 Allow preparing backups 2024-11-02 20:56:54 +01:00
68d0c889a9 Add backup capability for aliae 2024-11-02 18:26:33 +01:00
41f88b0df3 Add support for backing up and restoring software 2024-11-02 18:26:21 +01:00
2 changed files with 13 additions and 12 deletions

View file

@ -37,7 +37,7 @@ function backupAction -V dir
echo
end
read -xP "Please specify the path to the directory to save the backup to: " BACKUP_DIR
read -xP "Please specify the path to the directory to save the backup to: " VALHALLA_BACKUP_DIR
runHook backupSoftware || begin
echo "Backing up software..."

View file

@ -1,7 +1,14 @@
function backupFiles
if [ -n "$VALHALLA_BACKUP_DIR" ]
argparse -i "u/user=" "n/name=" "base-directory=" -- $argv
argparse -i "base-directory=" -- $argv
set -l tarArgs
set -l path (getArchivePath $argv)
set -l dir (dirname "$path")
argparse -i "u/user=" "n/name=" -- $argv
if runRestorationCommand test ! -d "$dir"
runRestorationCommand mkdir -p "$dir"
end
if [ -n "$_flag_base_directory" ]
set -a argv --base-directory "$_flag_base_directory"
@ -10,7 +17,7 @@ function backupFiles
set -a tarArgs -P
end
tar $tarArgs -cvz (fd $argv) | createArchive $argv --user "$_flag_user" --name "$_flag_name"
sudo tar $tarArgs -cv (fd $argv) | createArchive "$path"
end
end
@ -31,18 +38,12 @@ function restoreFiles
end
fetchArchive $argv | begin
sudo $sudoArgs tar $tarArgs -xvz
sudo $sudoArgs tar $tarArgs -xv
end
end
end
function createArchive
set -l path (getArchivePath $argv)
if [ ! -d (dirname "$path") ]
mkdir -p (dirname "$path")
end
function createArchive -a path
runRestorationCommand tee "$path" >/dev/null
end
@ -61,7 +62,7 @@ function runRestorationCommand
set -a args -p $VALHALLA_BACKUP_SERVER_PORT
end
ssh $args "$VALHALLA_BACKUP_SERVER" $argv
ssh $args "$VALHALLA_BACKUP_SERVER" (string escape -- $argv)
end
end