Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save martinandersen3d/99d2e7625bd680bc3c20de49e5aa7d05 to your computer and use it in GitHub Desktop.
Save martinandersen3d/99d2e7625bd680bc3c20de49e5aa7d05 to your computer and use it in GitHub Desktop.
Linux mint install, Backup Tool - Backup / export list
#!/bin/bash
# Please comment if there is a oneliner.. I looked around on google without succes :-/
backupToolOutputDir='/home/m/Documents/Backups'
targetOutputDir='/media/m/Data/Dropbox/Linux/Backups/BackupTool'
sleep 0.5
# Notification in top-right corner
notify-send "BACKUP - START: Installed Programs List"
sleep 0.5
#zenity --info --text="BACKUP: Installed Programs List"
# There needs to be a & sign at the end, to proceed after the program has been opened.
# This means that: Open the program(process) and continue script
# mintBackup is a program that comes with Mint, its called "Backup Tool" and can be found in the start menu.
/usr/bin/mintBackup &
sleep 0.5
xdotool key Right Down Down Return
sleep 0.3
xdotool key Tab Tab Tab Tab Return
sleep 1
cp -r $backupToolOutputDir $targetOutputDir
sleep 1
# Notification in top-right corner
notify-send "BACKUP - DONE: Installed Programs List"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment