Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/eskopp/nextcloud-backup

Nextcloud-Uploader is a Shell and Bash-based script designed to upload files to a Nextcloud instance. Built for simplicity and efficiency on Alpine, it includes features for overwriting, renaming, compressing, and adding date/time stamps to files, making it ideal for automation and lightweight workflows.
https://github.com/eskopp/nextcloud-backup

alpine backup bash docker git github nextcloud shell zip

Last synced: 8 days ago
JSON representation

Nextcloud-Uploader is a Shell and Bash-based script designed to upload files to a Nextcloud instance. Built for simplicity and efficiency on Alpine, it includes features for overwriting, renaming, compressing, and adding date/time stamps to files, making it ideal for automation and lightweight workflows.

Awesome Lists containing this project

README

        

# Nextcloud Uploader Action

This GitHub Action uploads files or zip archives to a Nextcloud server using WebDAV.

## Features

- Uploads files or directories to Nextcloud.
- Optionally zips the files before uploading.
- Supports Base64-encoded inputs for enhanced security.

## Inputs

| Name | Description | Required | Default |
| --------------- | ----------------------------------- | -------- | ------- |
| `nextcloud_url` | The Nextcloud WebDAV URL. | true | - |
| `password` | Nextcloud password. | true | - |
| `base64` | If true, inputs are Base64-encoded. | false | `false` |

## Outputs

| Name | Description |
| --------------- | ---------------------------- |
| `upload-status` | Status of the upload process |

## Example Workflow

```yaml
name: Upload to Nextcloud

on:
push:
branches:
- main

jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Upload to Nextcloud
uses: eskopp/github-nextcloud-backup@main
with:
nextcloud-url: "aHR0cHM6Ly9leGFtcGxlLmNvbS9yZW1vdGUucGhwL2Rhdi9maWxlcy91c2Vy"
password: "YmFzZTY0X3Bhc3N3b3Jk"
base64: "true"
```
## Example
This image provides a visual representation of the Nextcloud Uploader Action in use. It demonstrates how files are uploaded to a Nextcloud server using the specified GitHub Action.

![Nextcloud Uploader Action](image.png)