# Mount / unmount drives. For mount, add a drive at the end # EX: ext-mount /dev/sdc1 alias ext-mount="sudo mount --target /mnt --source" alias ext-unmount="sudo umount /mnt" # Backup Commands - USE DRY RUN FIRST!!! # Assumes the backup drive is mounted to /mnt, see above alias dry-run-backup-storage="rm -f /home/chris/.dry_run.log && rsync -auvi --delete --ignore-existing --dry-run /home/chris/Storage/* /mnt | grep -E '^deleting|[^/]$|^$' > /home/chris/.dry_run.log && echo log file has been generated in /home/chris/.dry_run.log" alias backup-storage="rsync -auvi --delete --ignore-existing /home/chris/Storage/* /mnt" #shortcuts for services alias sstatus='bash -xc '\''sudo service $0 status'\''' alias sstart='bash -xc '\''sudo service $0 start'\''' alias srestart='bash -xc '\''sudo service $0 restart'\''' alias sstop='bash -xc '\''sudo service $0 stop'\''' alias sstatusall="sudo service --status-all" #General alias restart="sudo shutdown -r now" alias shutdown="sudo shutdown -h now" alias lscount="ls -l | wc -l"