An open API service indexing awesome lists of open source software.

https://github.com/domenkozar/titanpad-backup-tool

Shell script to backup zip file of all pads on titanpad.com
https://github.com/domenkozar/titanpad-backup-tool

Last synced: about 1 year ago
JSON representation

Shell script to backup zip file of all pads on titanpad.com

Awesome Lists containing this project

README

          

# titanpad-backup-tool

Make backups of a [titanpad](https://github.com/titanpad/titanpad) subdomain.

* [Usage](#usage)
* [cronjob](#cronjob)
* [Authentication](#authentication)

## Usage

```
Usage: ./titanpad_backup.sh [-hx] -d {-u -p | -a }
-h This usage note
-x Delete backups older than 30 days
-d Subdomain to backup
-u Username
-p Password
-a File containing Username (first line) and Password (second line)
```

## cronjob

Place titanpad_backup.sh in ~/titanpad/ and configure crontab as following::

0 0 * * * ~/titanpad/titanpad_backup.sh -u -p

## Authentication

If you don't want to specify a password on the command line, create a file `~/titanpad/.auth` containing username and password:

```
MyUsername
MySecretPassword
```

Then use the `-a` option

0 0 * * * ~/titanpad/titanpad_backup.sh -a ~/titanpad/.auth