Skip to content

Commit

Permalink
bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
David7ce committed Aug 28, 2024
1 parent 578b419 commit 33a2b3d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ if [ -x /usr/bin/starship ]; then
unset -f __main
fi


# Backup, Careful check destination path!!!
origen="/0/"
destino="/run/media/d7/d7-backup/"
RSYNC_OPTIONS="-aAXv --delete --exclude='.Trash-1000/' --exclude='*/node_modules'"

# rsync -aAXv --delete --exclude='*/node_modules' /0/ /run/media/d7/d7-backup/
alias backup="rsync $RSYNC_OPTIONS $origen $destino && echo -e '\nExternal SSD backup done!'"
alias test-backup="rsync $RSYNC_OPTIONS --dry-run $origen $destino && echo -e '\nExternal SSD backup test done!'"
alias test-backup-output="rsync $RSYNC_OPTIONS --dry-run $origen $destino > rsync_out.txt 2>&1"

alias backup-MEGA="rsync -aAXvh --delete /0/Documents/D7-notes /0/Documents/David7ce-docs/bookmarks /0/Documents/David7ce-docs/software-list /0/Software/Config-files /home/d7/MEGA/MEGA/Documents/"

############ Bash aliases #############

alias list-pkgs='pacman -Qq > arch-pkgs.txt && pacman -Qqm > aur-pkgs.txt && flatpak list --app --columns=application > flatpak-pkgs.txt'
Expand Down

0 comments on commit 33a2b3d

Please sign in to comment.