close
The Wayback Machine - https://web.archive.org/web/20210225061147/https://github.com/gavinlyonsrepo/backupmenu
Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Overview

  • Name: backupmenu
  • Title : Backup Menu TUI
  • Description: Backup menu TUI for Debian based Linux distributions using dd, cp, Tar and rsync. Written in bash, CLI program.
  • Author : Gavin Lyons
  • Communication : github site or [email protected]
  • History : See changelog.md in documentation section for version control history
  • Copyright : Copyright (C) 2018 Gavin Lyons, See LICENSE.md in documentation section
  • Upstream repository: https://github.com/gavinlyonsrepo/backupmenu.

Table of contents

Installation

Two methods.

  1. Install by PPA

A Personal Package Archives (PPA) has been created on Ubuntu package building and hosting section of launchpad site called backupmenu. Package built on Ubuntu 20.04 LTS (Focal Fossa) 64bit

To install this on your system run commands in terminal

sudo add-apt-repository ppa:typematrix/backupmenu
sudo apt update
sudo apt install backupmenu

OR

  1. Install by makefile

Download latest fixed release and run the makefile as per terminal commands below for version 2.1 latest release at time of writing. The disadvantage of this method is you will not be informed of any updates.

curl -sL https://github.com/gavinlyonsrepo/backupmenu/archive/2.1.tar.gz | tar xz
cd backupmenu-2.1
sudo make install

Usage

type in terminal:

backupmenu

Type "backupmenu" in a terminal to run or select the icon. The program installs an icon in system application menus under system.

icon

Files and setup

File Description
/usr/bin/backupmenu The main shell script
/usr/lib/backupmenu/modules/* 2 Module files containing functions
/usr/share/doc/backupmenu/README.md Help file
/usr/share/doc/copyright copyright file
/usr/share/pixmaps/backupmenuicon.png program icon
/usr/share/applications/backupmenu.desktop desktop entry file
$HOME/.config/backupmenu/backupmenu.cfg config file(must be created)

Config file: The user must create the config file. "DESTX" is the path for backups.(where X is 1 , 2 ,3 ) "rsyncsource" and "rsyncdest" provide the source and destination paths for rsync option in backup menu. The config file can be edited from a main menu option.

backupmenu.cfg file setup example: Just copy and paste this into file and change paths for your setup. alternatively a config file template with dummy values is in documentation folder of the repository.

DEST1="/run/media/$USER/Linux_backup/"

DEST2="/run/media/$USER/iomega_320/"

DEST3="/tmp/"

rsyncsource="$HOME/"

rsyncDest="/run/media/$USER/Linux_backup/foo"

EDITOR "nano" is used as default text editor for editing config files IF $EDITOR user environment variable is not set.

$EDITOR

Features

  • System backup

    1. Destination path as defined in config file or custom path
    2. Make copy of MBR or GPT primary partition with dd
    3. Make a copy of etc dir using cp
    4. Make a copy of home dir using cp
    5. Make copy of package lists.(see below)
    6. Make tarball of entire file system except tmp dev proc sys run
    7. Options 2-6 combined
    8. Custom Source directory for tarball
    9. Rsync backup option selected from main menu

Package Lists

Index Contents Filename
1 All installed All_PKG
2 All native, explicitly installed Exp_PKG
3 List orphaned packages noinstall_PKG
4 Get a dump of the whole system information stats_PKG
5 List packages that were recently added to one of the installation sources Recent_add_PKG
6 List packages not required by any other package non-Dep_PKG
7 List packages installed automatically (as dependencies) auto_Dep_PKG
8 Prints a list of all installation source Info_Source_PKG
9 List of non-standard repositories in use non_standard_PKG
10 List Installed packages by size install_size_PKG
11 List packages by install date Install_date_1_PKG
12 List packages by install date less data Install_date_2_PKG

Commands used by index number in table:

  1. dpkg --list | grep ^i
  2. apt-mark showmanual
  3. deborphan
  4. apt-cache stats
  5. aptitude search '~N'
  6. deborphan -anp1
  7. apt-mark showauto
  8. apt-cache policy
  9. cat /etc/apt/sources.list.d/*.list | grep -v "^#"
  10. aptitude search "~i" --display-format "%p %I" --sort installsize
  11. grep installed /var/log/dpkg.log
  12. grep " install " /var/log/dpkg.log