# Mount / unmount drives. For mount, add a drive at the end # EX: ext-mount /dev/sdd1 alias ext-mount="mount -o iocharset=utf8 --target /extmnt --source" alias ext-unmount="umount /extmnt" # Backup Commands - USE DRY RUN FIRST!!! # Assumes the backup drive is mounted to /extmnt see above alias dry-run-backup-storage="rm -f /root/.dry_run.log && rsync -auvi --delete --ignore-existing --dry-run /storage/* /extmnt | grep -E '^deleting|[^/]$|^$' > /root/.dry_run.log && echo log file has been generated in /root/.dry_run.log" alias dry-run-backup-2-storage="rm -f /root/.dry_run.log && rsync -auvi --delete --ignore-existing --dry-run /storage2/TV\ Shows /storage2/Movies /extmnt | grep -E '^deleting|[^/]$|^$' > /root/.dry_run.log && echo log file has been generated in /root/.dry_run.log" alias backup-storage="rsync -auvi --delete --ignore-existing /storage/* /extmnt" alias backup-2-storage="rsync -auvi --delete --ignore-existing /storage2/TV\ Shows /storage2/Movies /extmnt" #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"