Skip to content

Back up uploads to Nextcloud

Copy every new upload into dated folders in Nextcloud or on a NAS over WebDAV, and move old videos out of Avenvail.

Avenvail keeps your files on one server, or in one bucket. This guide adds a second copy somewhere you already trust: a library workflow that copies every new upload into a Nextcloud folder, sorted by year and month. The same steps work with ownCloud, a Synology NAS or any WebDAV server; only the connection changes.

  1. File uploaded (trigger)Every file
  2. Copy to WebDAV{{ subject.createdAt | date: 'yyyy/MM' }}

What you'll build

Uploading sharex-window-capture.png on 3 December 2026 stores a copy at Avenvail/2026/12/sharex-window-capture.png in your Nextcloud. Upload another file with the same name that month and it's stored as sharex-window-capture (2).png, so nothing is ever overwritten. The file in Avenvail doesn't change.

Before you start

DifficultyBeginner
TimeAbout 10 minutes
Workflow kindLibrary workflow
ConnectionsA WebDAV connection to Nextcloud, ownCloud, a NAS or another WebDAV server
Folders, tags, fieldsNone
Sample fileAny file, such as sharex-window-capture.png

You need a Nextcloud account, and permission to create an app password in it.

Build it

Connect Nextcloud

  1. In Nextcloud, create a folder called Avenvail, and an app password under Personal settings › Security.
  2. In Avenvail, open Automations › Connections, click Add connection and choose Nextcloud under File storage.
  3. Set Folder address to https://cloud.example.com/remote.php/dav/files/alex/Avenvail/, with your server and Nextcloud user name. Set User name and Password (the app password).
  4. Click Test connection. All three checks should pass. Then click Add connection.

File storage has the details for ownCloud, Synology and other servers.

Create the workflow

  1. Open Automations, click New workflow and choose Library workflow. Name it Back up to Nextcloud.
  2. Choose the File uploaded trigger. Leave File types empty to copy every file.
  3. Add a Copy to WebDAV step after it, and set:
    • Connection: your Nextcloud connection.
    • Folder: a template, {{ subject.createdAt | date: 'yyyy/MM' }}. Type {{ to pick Current file › Uploaded, then add the date filter.
    • File name: leave it empty to keep the file's name.
    • If the name is taken: Add a number.
  4. Click Publish.

Test it

  1. Click Test in the editor and choose a file from your library.
  2. Allow the test to send to outside services when it asks: this step stores a real file.
  3. The run shows the step's Path, such as /2026/12/sharex-window-capture.png. Open Nextcloud and check that it's there.

Turn it on

Turn the workflow on with the switch in the editor's header. From now on, each upload is copied once it's saved. Files you uploaded earlier aren't copied. To copy them, build the same step in a second workflow whose trigger is Run manually, then select up to 100 files in Files and choose More actions › Run automation.

What to expect

  • Each copy takes about as long as uploading the file to Nextcloud yourself. Large videos stream straight from storage, so they don't use Avenvail's memory.
  • The run history shows each copy's path. The step's Address output is the WebDAV address, which opens after Nextcloud asks you to sign in.
  • If Nextcloud is down, the step retries when it knows nothing was stored. When it can't tell, the run stops at Needs attention and asks before sending again, so a file is never stored twice by accident.

Troubleshooting

ProblemFix
The test says the folder doesn't existCreate the folder in Nextcloud, or check the end of the address.
The server refused the user name or passwordUse an app password, and your Nextcloud user name rather than your email address.
Avenvail doesn't send requests to … because it's a private, local or reserved addressNextcloud runs on your own network. An admin has to turn on Allow private network addresses for the connection.
webdav_file_existsIf the name is taken is set to Fail the step, and the file is already there.

Make it your own

Move old videos out of Avenvail

To keep large files only in Nextcloud, use Move to WebDAV instead. It copies the file, then moves it to Avenvail's trash once Nextcloud has stored it. Pair it with a Condition on Current file › Category is video so only videos move.

Different folders for different files

Put a Switch on Current file › Category before the step, with a Copy to WebDAV step on each branch: images to Photos/{{ subject.createdAt | date: 'yyyy' }}, documents to Documents, everything else to Other.

Copy the processed file

In an intake workflow, set the step's Content (under Which file?) to the content a Resize or Convert image step produced, to keep the processed copy in Nextcloud as well.

Privacy, cost and reliability

  • Files go only to the connection's server, using the user name and app password you gave it. Revoke the app password in Nextcloud to cut Avenvail off.
  • Nothing costs extra, apart from the storage on your Nextcloud.
  • This is a copy, not a sync: deleting or renaming a file in Avenvail doesn't change the copy, and changes in Nextcloud don't come back.