Void Linux workstation powered by niri, Fish and NeoVim. Contains scripts, browser extensions, custom XBPS packages, and typst plugins. git.anhgelus.world/anhgelus/dotfiles
void niri fish neovim nvim vim dotfiles linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(sh): script to backup laptop in cloud

+14
+14
backup.sh
··· 1 + #!/usr/bin/bash 2 + 3 + toBackup="/home/anhgelus/Documents/" 4 + backup="/home/anhgelus/cloud.anhgelus.world/Documents/Laptop/" 5 + 6 + if [ -d "$backup" ]; then 7 + echo "cloud.anhgelus.world already mounted" 8 + else 9 + mount -t davfs "https://cdn.anhgelus.world/private" 10 + fi 11 + 12 + rsync -az --exclude={'**/.git', '**/*.o'} "$toBackup" "$backup" 13 + 14 + echo "$toBackup was backuped in $backup"