Skip to content

Instantly share code, notes, and snippets.

@janikvonrotz
Last active September 11, 2021 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janikvonrotz/5ac7998b00900a3680d7 to your computer and use it in GitHub Desktop.
Save janikvonrotz/5ac7998b00900a3680d7 to your computer and use it in GitHub Desktop.
Ubuntu: Useful command aliases #Ubuntu #Markdown

Introduction

This is a list of useful commandline aliases for your Ubuntu installation.

Requirements

  • Ubuntu server
  • Supported installations (see below)

Instructions

The structure of the command aliases is a mix of the first 3 letters of the programm you're running and the parameters you're adding. To set this aliases permanently add them to bash profile scirpt.

vi ~/.bashrc

duplicity-backup

List current files from your latest backup.

alias duplcf="sudo /usr/local/src/duplicity-backup/duplicity-backup.sh -c /etc/duplicity-backup/duplicity-backup.conf --list-current-files"

Run a backup.

alias dupbak="sudo /usr/local/src/duplicity-backup/duplicity-backup.sh -c /etc/duplicity-backup/duplicity-backup.conf -b"

Get the status of the latest backup.

alias dupsta="sudo /usr/local/src/duplicity-backup/duplicity-backup.sh -c /etc/duplicity-backup/duplicity-backup.conf -s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment