Skip to content
Snippets Groups Projects
Verified Commit 2c5e1328 authored by David Beniamine's avatar David Beniamine
Browse files

More doc

parent 3083a0a5
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ This script is meant to be run by small buisness at closing time. ...@@ -8,7 +8,7 @@ This script is meant to be run by small buisness at closing time.
## Install ## Install
0. Clone this repo `git clone https://gitlab.tetras-libre.fr/tetras-libre/simple_backup.sh`, if required, install git before `sudo apt-get install git` 0. Clone this repo `git clone https://gitlab.tetras-libre.fr/tetras-libre/simple_backup.sh`, if required, install git before `sudo apt-get install git`
1. Install dependencies : `apt-get install zenity rsync` 1. Install dependencies : `sudo apt-get install zenity rsync`
2. Copy `simple_backup.env.sample` to `simple_backup.env` and set directories and destination 2. Copy `simple_backup.env.sample` to `simple_backup.env` and set directories and destination
3. Add fstab entry to mount destination for instance for a NFS, add the following line to `/etc/fstab` : `//<serverip>/<directory> /media/user/backup cifs user,username=<user>,password=<password> 0 0 `, adapt every field between `<>` to your needs. 3. Add fstab entry to mount destination for instance for a NFS, add the following line to `/etc/fstab` : `//<serverip>/<directory> /media/user/backup cifs user,username=<user>,password=<password> 0 0 `, adapt every field between `<>` to your needs.
3. Add a crontab entry with command `crontab -e` like `30 18 * * * /path/to/simple_backup.sh` 3. Add a crontab entry with command `crontab -e` like `30 18 * * * /path/to/simple_backup.sh`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment