https://github.com/rollecode/sync-to-nextcloud
Dependency free scripts for syncing files to Nextcloud.
https://github.com/rollecode/sync-to-nextcloud
backup-script backup-utility bash cli nextcloud script
Last synced: 27 days ago
JSON representation
Dependency free scripts for syncing files to Nextcloud.
- Host: GitHub
- URL: https://github.com/rollecode/sync-to-nextcloud
- Owner: rollecode
- Created: 2025-03-02T15:16:48.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-13T15:22:30.000Z (12 months ago)
- Last Synced: 2026-05-02T13:33:34.068Z (28 days ago)
- Topics: backup-script, backup-utility, bash, cli, nextcloud, script
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ⚡ Sync to Nextcloud (Linux bash utility)
  
This completely dependency-free script syncs a local directory to a Nextcloud WebDAV server.
## Getting started
1. Clone the repository.
```bash
git clone https://github.com/ronilaukkarinen/nextcloud-scripts
```
2. Install dependencies.
```bash
npm install
```
3. Create a `.env` file.
```bash
cp .env.example .env
```
4. Set permissions.
```bash
chmod +x sync-to-nextcloud.sh
```
5. Run the script.
```bash
# Sync a single file
./sync-to-nextcloud.sh ~/Documents/myfile.txt /
# Sync an entire directory
./sync-to-nextcloud.sh ~/Documents/files/ /
# Do a dry run first
./sync-to-nextcloud.sh --dry-run ~/Documents/files/ /
# More verbose output
./sync-to-nextcloud.sh --verbose ~/Documents/files/ /
# Show help
./sync-to-nextcloud.sh --help
```