dotfiles

My personal dotfiles 💠️

backup.fish (1977B)

      1 function backup -d "Backup my relevant data in my backup drive."
      2   set date (date '+%Y-%m-%d')
      3 
      4   # Backup the most important directories into an archive named after
      5   # the machine this script is currently running on:
      6   borg create                                                          \
      7     --verbose                                                          \
      8     --filter AME                                                       \
      9     --list                                                             \
     10     --stats                                                            \
     11     --show-rc                                                          \
     12     --compression lz4                                                  \
     13     --exclude-caches                                                   \
     14     --exclude-from "$HOME/.local/share/excludefile"                    \
     15     "/media/pablo/Seagate Backup Plus Drive/Backups/::$hostname-$date" \
     16     "$HOME/.ssh"                                                       \
     17     "$HOME/Archive"                                                    \
     18     "$HOME/Documents"                                                  \
     19     "$HOME/Passwords"                                                  \
     20     "$HOME/Pictures"                                                   \
     21     "$HOME/Music"                                                      \
     22     "$HOME/Videos"                                                     \
     23     "$HOME/Monero"                                                     \
     24     "$HOME/Emulation"                                                  \
     25     "$HOME/VirtualBox VMs"                                             \
     26     "$HOME/.config"                                                    \
     27     "$HOME/.local/share/excludefile"                                   \
     28     "$HOME/.local/share/texmf"                                         \
     29     "$HOME/.local/bin/exports.sh"                                      \
     30 
     31 end
     32