Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielmelogm/node-backup
An script with node to backup linux system
https://github.com/gabrielmelogm/node-backup
backup-script gnome google-cloud nodejs
Last synced: about 1 month ago
JSON representation
An script with node to backup linux system
- Host: GitHub
- URL: https://github.com/gabrielmelogm/node-backup
- Owner: gabrielmelogm
- Created: 2024-04-17T19:55:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-17T20:31:29.000Z (9 months ago)
- Last Synced: 2024-04-18T21:07:11.067Z (9 months ago)
- Topics: backup-script, gnome, google-cloud, nodejs
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Backup node
> An script with node to backup linux system## Options
- Edit file in~/.config/backup/config.json
| Option | Description |
| ------------- | ------------- |
| tmpFolder | string: Directory temporarily used to store compressed files |
| rootDir | string: Root directory to search |
| googleDrivePath | string: Directory that Google Drive is mounted on |
| folders | string[]: Directories that will be backed up |## How compiling
1. Config gnome with your google drive
> [!WARNING]
> default dir:/run/user/1000/gvfs/...
> Copy your paths after this and config in~/.config/backup/config.json
```bash
{
...,
"googleDrivePath": "", # change path
"folders": [
"Documents"
]
}
```2. Install dependencies
```bash
npm install
```3. Build
```bash
npm run build
```4. Run script
```bash
npm run start
```