2019-05-02 01:13:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# this little script backs up all the config files that matter
|
|
|
|
|
|
|
|
dotfiles=~/utils/dotfiles
|
2019-06-27 02:36:15 +02:00
|
|
|
MEGA="MEGA/Private"
|
2019-05-02 01:13:32 +02:00
|
|
|
|
2019-05-29 00:34:52 +02:00
|
|
|
params="auP"
|
|
|
|
if [ "$1" == "-d" ]; then
|
|
|
|
params="aunP" # rsync -n for dry run
|
|
|
|
fi
|
2019-05-02 01:13:32 +02:00
|
|
|
|
2019-05-29 00:34:52 +02:00
|
|
|
rsync -$params /etc/X11/Xresources $dotfiles/etc/X11
|
2019-05-02 01:13:32 +02:00
|
|
|
|
2019-05-29 00:34:52 +02:00
|
|
|
rsync -$params ~/alltheconfigs.sh $dotfiles
|
2019-05-02 01:13:32 +02:00
|
|
|
|
2019-11-19 01:35:47 +01:00
|
|
|
rsync -$params ~/.vimrc $dotfiles/vimrc
|
|
|
|
#rsync -$params ~/.gvimrc $dotfiles/gvimrc really using just vimrc
|
2019-05-29 00:34:52 +02:00
|
|
|
rsync -$params ~/.zshrc $dotfiles/zsh/zshrc
|
2019-05-02 01:13:32 +02:00
|
|
|
|
2019-06-27 02:36:15 +02:00
|
|
|
#rsync -$params ~/$MEGA/backups/authenticator.sh $dotfiles/backups
|
|
|
|
rsync -$params ~/$MEGA/backups/createarchive.sh $dotfiles/backups
|
2019-05-15 04:49:18 +02:00
|
|
|
|
2019-06-27 02:36:15 +02:00
|
|
|
rsync -$params ~/$MEGA/fedora-backup/fedora-setup/fedora-setup.sh $dotfiles/setup-env
|
|
|
|
rsync -$params ~/$MEGA/fedora-backup/fedora-setup/deploy-dotfiles.sh $dotfiles/setup-env
|
|
|
|
rsync -$params ~/$MEGA/fedora-backup/fedora-setup/EASetup.sh $dotfiles/setup-env
|
2019-05-15 04:49:18 +02:00
|
|
|
|
2019-05-29 00:34:52 +02:00
|
|
|
rsync -$params ~/.oh-my-zsh/themes/myowntheme* $dotfiles/zsh/oh-my-zsh/themes
|