Skip to content

Instantly share code, notes, and snippets.

@erenseymen
Last active February 20, 2021 01:19
Show Gist options
  • Save erenseymen/c6f02d9e631a0502e2e6ba1621f42aaf to your computer and use it in GitHub Desktop.
Save erenseymen/c6f02d9e631a0502e2e6ba1621f42aaf to your computer and use it in GitHub Desktop.
#!/bin/bash
rsync -a --del --relative /etc/apt .other-backups
rsync -a --del --relative /etc/environment .other-backups
rsync -a --del --relative /etc/fstab .other-backups
rsync -a --del --relative /etc/sysctl.conf .other-backups
sudo rsync -a --del --relative /root/.config/bleachbit/bleachbit.ini .other-backups
sudo rsync -a --del --relative /root/.synaptic/synaptic.conf .other-backups
sudo chown -R $USER:$USER .other-backups/root
apt-mark showmanual > /tmp/foo
rsync -a --checksum /tmp/foo .other-backups/apt-manual.txt
apt-mark showauto > /tmp/foo
rsync -a --checksum /tmp/foo .other-backups/apt-auto.txt
dconf dump / > /tmp/foo
rsync -a --checksum /tmp/foo .other-backups/dconf.txt
# dconf load / < dconf.txt
copyq tab favorite exporttab /tmp/foo
rsync -a --checksum /tmp/foo .other-backups/copyq-favorite.txt
# copyq tab favorite importtab copyq-favorite.txt
xfce4-panel-profiles save .other-backups/xfce-panel-profile
# xfce4-panel-profiles load .other-backups/xfce-panel-profile
/usr/share/code/code --no-sandbox --unity-launch .gitignore
# sudo chmod -x '/etc/cron.daily/mlocate'
# sudo cp -r .config/geany /root/.config/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment