Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/bash
  2. #
  3. # Backup script
  4. #
  5. # Format: YEAR MONTH DAY
  6. DATE=$(date +%Y%m%d)
  7. INCLUDE1="/home/shaggy/.vimrc /home/shaggy/.abook /home/shaggy/.calcurse /home/shaggy/.colors"
  8. INCLUDE2="/home/shaggy/.config/bspwm /home/shaggy/.config/dwb /home/shaggy/.config/htop /home/shaggy/.config/mpd"
  9. INCLUDE3="/home/shaggy/.config/mps-youtube /home/shaggy/.config/mpv /home/shaggy/.config/Mumble /home/shaggy/.config/qutebrowser"
  10. INCLUDE4="/home/shaggy/.config/ranger /home/shaggy/.config/sxhkd /home/shaggy/.config/sxiv /home/shaggy/.config/wmfs"
  11. INCLUDE5="/home/shaggy/.config/youtube-viewer /home/shaggy/.cortex /home/shaggy/.fluxbox"
  12. INCLUDE6="/home/shaggy/.irssi /home/shaggy/.i3 /home/shaggy/.mpv /home/shaggy/.mutt /home/shaggy/.muttrc"
  13. INCLUDE7="/home/shaggy/.nano /home/shaggy/.ncmpcpp /home/shaggy/.newsbeuter /home/shaggy/.offlineimap"
  14. INCLUDE8="/home/shaggy/.ssh /home/shaggy/.turses /home/shaggy/.password-store"
  15. INCLUDE9="/home/shaggy/.weechat /home/shaggy/scripts /home/shaggy/.aliasrc"
  16. INCLUDE10="/home/shaggy/.cliweather /home/shaggy/.conkyrc /home/shaggy/.gitconfig /home/shaggy/.goobook_cache"
  17. INCLUDE11="/home/shaggy/.msmtprc /home/shaggy/.nanorc /home/shaggy/.netrc /home/shaggy/.offlineimaprc"
  18. INCLUDE12="/home/shaggy/.notmuch-config /home/shaggy/.Xdefaults /home/shaggy/.xinitrc /home/shaggy/.xprofile"
  19. INCLUDE13="/home/shaggy/.zshrc /home/shaggy/.zsh_history /home/shaggy/.screenrc"
  20. INCLUDE14="/home/shaggy/scripts /home/shaggy/private /home/shaggy/.gnupg"
  21. BACKUPDIRARCH=/riddlebox/Dropbox/backups/archconfigs/
  22. # Target file
  23. TARTARGET="/riddlebox/Dropbox/backups/backup.tar.gz"
  24. ETCTARTARGET="/riddlebox/Dropbox/backups/ETC.tar.gz"
  25. TARTARGETMAIL="/riddlebox/Dropbox/backups/backupmail-$DATE.tar.gz"
  26. #tar -czvf $TARTARGET $MYSQLTARGET /home/code/bots /var/config /var/system
  27. tar -czvf $TARTARGETMAIL /home/shaggy/Maildir
  28. tar -czvf $TARTARGET /home/shaggy/bin $INCLUDE1 $INCLUDE2 $INCLUDE3 $INCLUDE4 $INCLUDE5 $INCLUDE6 $INCLUDE7 $INCLUDE8 $INCLUDE9 $INCLUDE10 $INCLUDE11 $INCLUDE12 $INCLUDE13 $INCLUDE14
  29. tar -czvf $ETCTARTARGET /etc
  30. #nice -n 19 rsync --archive --force --delete --progress --compress /etc $BACKUPDIRARCH