feat: initial backend implementation of multihost synchronization (#562)

This commit is contained in:
Gareth
2025-01-07 20:31:31 -08:00
committed by GitHub
parent b3402a18d2
commit a4b4de5152
101 changed files with 7949 additions and 2174 deletions

View File

@@ -21,14 +21,14 @@ if [ "$(uname)" = "Darwin" ]; then
sudo diskutil erasevolume HFS+ RAM_Disk_512MB $(hdiutil attach -nomount ram://1048576)
fi
export TMPDIR="/Volumes/RAM_Disk_512MB"
export XDG_CACHE_HOME="$TEMPDIR/.cache"
export RESTIC_CACHE_DIR="$TMPDIR/.cache"
echo "Created 512MB RAM disk at /Volumes/RAM_Disk_512MB"
echo "TMPDIR=$TMPDIR"
echo "XDG_CACHE_HOME=$XDG_CACHE_HOME"
echo "RESTIC_CACHE_DIR=$RESTIC_CACHE_DIR"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Create ramdisk
sudo mkdir -p /mnt/ramdisk
sudo mount -t tmpfs -o size=512M tmpfs /mnt/ramdisk
export TMPDIR="/mnt/ramdisk"
export XDG_CACHE_HOME="$TEMPDIR/.cache"
export RESTIC_CACHE_DIR="$TMPDIR/.cache"
fi

0
scripts/testing/run-fresh.sh Executable file → Normal file
View File