Skip to content

ovalseven8/BackupScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

BorgBackup script

Script to do daily backups to a Samba share using BorgBackup.

Instructions

Requirements

Python 3.6+
BorgBackup 1.1.0+
OS supporting notify-send command
cifs-utils

Install dependencies

Make sure that cifs-utils and borg (>= 1.1.0) is installed:

sudo apt-get install cifs-utils
sudo apt-get install borg

Samba share

  1. Create new file ~/.smbcredentials with the following content to have access to the Samba share
username=(username)
password=(password)
  1. Create mount point for NAS
sudo mkdir /media/nas

Set up script

  1. Download this repository and put it into a directory of your choice (e.g. ~/scripts):
mkdir ~/scripts
cd ~/scripts
git clone https://github.com/ovalseven8/BackupScript
  1. Open config.py and fill the configs.
  2. Make sure that all two scripts are executable!

Do daily backups! :)

  1. Create symbolic link to the backup script
sudo ln -s /path/to/backupScript /etc/cron.daily
  1. The script checkBackupDate.py is for checking if regular backups are created. If there have not been new backups for n days it shows a popup. Add checkBackupDate.py to autostart (depends on operating system).

Please be aware that if you change the location of the three files you should also change the symbolic link and maybe adjust autostart!

About

Backup script for BorgBackup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages