Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreporto/folder-backup
Simple shell unix script to make folder backups
https://github.com/andreporto/folder-backup
backup bash encrypt script shell zip
Last synced: about 2 months ago
JSON representation
Simple shell unix script to make folder backups
- Host: GitHub
- URL: https://github.com/andreporto/folder-backup
- Owner: andreporto
- Created: 2020-06-09T13:57:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T22:30:31.000Z (over 4 years ago)
- Last Synced: 2023-03-07T11:47:07.133Z (over 1 year ago)
- Topics: backup, bash, encrypt, script, shell, zip
- Language: Shell
- Size: 25.4 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![GitHub repo size](https://img.shields.io/github/repo-size/andreporto/folder-backup) ![Last commit](https://img.shields.io/github/last-commit/andreporto/folder-backup)
# Simple shell script to make encrypted folder backup
## Installation
```shell
git clone https://github.com/andreporto/folder-backup.gitchmod +x ./folder-backup/fbkp.sh
ln ./folder-backup/fbkp.sh ~/fbkp.sh
```## 01 Clone repo and config script:
## 02 Do your backups:
## 03 Restore your backup to a selected folder:
## Usage
---
```shell
folder-backup.sh "SOURCE_FOLDER" ["TARGET FOLDER NAME"] ["CUSTOM PASSWORD"]
```
---
* "SOURCE_FOLDER" IS THE SOURCE FOLDER NAME TO BACKUP, IT CAN CONTAINS FILES AND SUB-FOLDERS
* IF NO TARGET FOLDER IS ENTERED IT WILL BE CREATED A SOURCE_FOLDER + DATE NAMED FOLDER
* OPTIONALLY YOU CAN ENTER A [CUSTOM PASSWORD]
* IF NO PASSWORD IS ENTERED DEFAULT PASSWORD WILL BE USED TO ENCRYPT FILES
* "REPLACE-THIS-TEXT-WITH-YOUR-REAL-PASSWORD-IN-DOUBLE-QUOTES" IS THE DEFAULT PASSWORD AND YOU CAN CHANGE IT.
---### Examples:
- Zip all files and sub-folders from MyFolder to a new folder named with MyFolder-YYYY-MM-DD pattern. All zip files will be encrypted with with custom or default password.
```shell
~/fbkp.sh MyFolder
```
---- Zip all files and sub-folders from MyFolder to MySafeStorage folder. All zip files will be encrypted with with custom or default password.
```shell
~/fbkp.sh MyFolder MySafeStorage
```
---- Zip all files and sub-folders from MyFolder to MySafeStorage folder. All zip files will be encrypted with "MySecureKey123" password.
```shell
~/fbkp.sh MyFolder MySafeStorage MySecureKey123
```
---## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.## License
[MIT](https://choosealicense.com/licenses/mit/)