flipflop133 / Dotfiles_manager

Backup and restore your dotfiles easily

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOTFILES MANAGER UTILITY


Features:

  • Backup and restore all your dotfiles.
  • Backup and restore all your system files.
  • Backup manually installed packages.
  • push dotfiles to your repo
  • White spaces in paths are supported.

How to use:

Backup:

Dotfiles

Simply put all the paths of your dotfiles(directories or files) in "dotfiles_list.txt" as follow: dotfiles_list.txt:

.config/polybar
.config/nvim/init.vim

(No need to add your home path.) Run the script in your terminal:

$ ./dotfiles_manager.sh

System files

Simply put all the paths of your system files(directories or files) in "system_files.txt" as follow: system_files.txt:

/etc/lightdm
/etc/fstab

Run the script in your terminal:

$ ./dotfiles_manager.sh

Restore:

Clone your dotfile backup repository.

Dotfiles

Put the dotfiles_manager.sh and dotfiles_list.txt files inside your cloned repository. Run the script in your terminal:

$ ./dotfiles_manager.sh

System files

Put the dotfiles_manager.sh and system_files.txt files inside your cloned repository. Run the script as root in your terminal:

$ ./dotfiles_manager.sh

Feel free to do pull requests ;)


Thanks to Mortezadadgar for his help and feedbacks on this script!

About

Backup and restore your dotfiles easily

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%