Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/apostololeg/webdav-backup

Backup some folder of your project to webdav.
https://github.com/apostololeg/webdav-backup

Last synced: 26 days ago
JSON representation

Backup some folder of your project to webdav.

Awesome Lists containing this project

README

        

# Backup to WebDAV
Script for backup some folder of your project to WebDAV.

#### Run
``./backup.sh``

#### Configuration
* install [cadaver](http://www.webdav.org/cadaver/)
* create directory on your WebDAV server
* write `~/.netrc` config file for autologin
* write `.backuprc`
* HOST – host, where to connect
* BACKUP_DIR – local folder you want to back up
* DESTINATION_DIR – remote folder in which you want to back up
* IGNORE_CONFIG – optional config with ignores

#### Config's examples

###### ~/.netrc
```
machine webdav.yandex.ru
login login
password *******

```

###### .backuprc
```
HOST="https://webdav.yandex.ru"
BACKUP_DIR="data"
DESTINATION_DIR="example"
IGNORE_CONFIG=".backupignore"

```

###### .backupignore
```
**/.DS_Store
tmp
```

### License
[MIT](https://github.com/truerenton/webdav-backup/blob/master/LICENSE)