[{"data":1,"prerenderedAt":843,"buildId":844},["ShallowReactive",2],{"\u002Fguides\u002Fback-up-to-nextcloud":3,"\u002Fguides\u002Fback-up-to-nextcloud-surround":534,"navigation":545},{"id":4,"title":5,"body":6,"description":526,"extension":527,"meta":528,"navigation":529,"path":530,"seo":531,"stem":532,"__hash__":533},"docs\u002F7.guides\u002F9.back-up-to-nextcloud.md","Back up uploads to Nextcloud",{"type":7,"value":8,"toc":505},"minimark",[9,18,22,27,43,47,117,120,124,129,191,197,201,287,291,313,317,330,334,353,357,419,423,427,446,450,470,474,490,494],[10,11,12,13,17],"p",{},"Avenvail keeps your files on one server, or in one bucket. This guide adds a second copy somewhere you already trust: a ",[14,15,16],"strong",{},"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.",[19,20],"workflow-diagram",{":steps":21},"[{\"name\":\"File uploaded\",\"summary\":\"Every file\",\"trigger\":true},{\"name\":\"Copy to WebDAV\",\"summary\":\"{{ subject.createdAt | date: 'yyyy\u002FMM' }}\",\"icon\":\"i-lucide-hard-drive-upload\"}]",[23,24,26],"h2",{"id":25},"what-youll-build","What you'll build",[10,28,29,30,34,35,38,39,42],{},"Uploading ",[31,32,33],"code",{},"sharex-window-capture.png"," on 3 December 2026 stores a copy at ",[31,36,37],{},"Avenvail\u002F2026\u002F12\u002Fsharex-window-capture.png"," in your Nextcloud. Upload another file with the same name that month and it's stored as ",[31,40,41],{},"sharex-window-capture (2).png",", so nothing is ever overwritten. The file in Avenvail doesn't change.",[23,44,46],{"id":45},"before-you-start","Before you start",[48,49,50,61],"table",{},[51,52,53],"thead",{},[54,55,56,59],"tr",{},[57,58],"th",{},[57,60],{},[62,63,64,73,81,89,97,105],"tbody",{},[54,65,66,70],{},[67,68,69],"td",{},"Difficulty",[67,71,72],{},"Beginner",[54,74,75,78],{},[67,76,77],{},"Time",[67,79,80],{},"About 10 minutes",[54,82,83,86],{},[67,84,85],{},"Workflow kind",[67,87,88],{},"Library workflow",[54,90,91,94],{},[67,92,93],{},"Connections",[67,95,96],{},"A WebDAV connection to Nextcloud, ownCloud, a NAS or another WebDAV server",[54,98,99,102],{},[67,100,101],{},"Folders, tags, fields",[67,103,104],{},"None",[54,106,107,110],{},[67,108,109],{},"Sample file",[67,111,112,113],{},"Any file, such as ",[114,115,33],"a",{"href":116},"\u002Fsamples\u002Fsharex-window-capture.png",[10,118,119],{},"You need a Nextcloud account, and permission to create an app password in it.",[23,121,123],{"id":122},"build-it","Build it",[125,126,128],"h3",{"id":127},"connect-nextcloud","Connect Nextcloud",[130,131,132,145,163,182],"ol",{},[133,134,135,136,140,141,144],"li",{},"In Nextcloud, create a folder called ",[137,138,139],"em",{},"Avenvail",", and an app password under ",[14,142,143],{},"Personal settings › Security",".",[133,146,147,148,151,152,155,156,159,160,144],{},"In Avenvail, open ",[14,149,150],{},"Automations › Connections",", click ",[14,153,154],{},"Add connection"," and choose ",[14,157,158],{},"Nextcloud"," under ",[14,161,162],{},"File storage",[133,164,165,166,169,170,173,174,177,178,181],{},"Set ",[14,167,168],{},"Folder address"," to ",[31,171,172],{},"https:\u002F\u002Fcloud.example.com\u002Fremote.php\u002Fdav\u002Ffiles\u002Falex\u002FAvenvail\u002F",", with your server and Nextcloud user name. Set ",[14,175,176],{},"User name"," and ",[14,179,180],{},"Password"," (the app password).",[133,183,184,185,188,189,144],{},"Click ",[14,186,187],{},"Test connection",". All three checks should pass. Then click ",[14,190,154],{},[10,192,193,196],{},[114,194,162],{"href":195},"\u002Fconnections\u002Fstorage"," has the details for ownCloud, Synology and other servers.",[125,198,200],{"id":199},"create-the-workflow","Create the workflow",[130,202,203,218,229,282],{},[133,204,205,206,151,209,155,212,214,215,144],{},"Open ",[14,207,208],{},"Automations",[14,210,211],{},"New workflow",[14,213,88],{},". Name it ",[137,216,217],{},"Back up to Nextcloud",[133,219,220,221,224,225,228],{},"Choose the ",[14,222,223],{},"File uploaded"," trigger. Leave ",[14,226,227],{},"File types"," empty to copy every file.",[133,230,231,232,235,236],{},"Add a ",[14,233,234],{},"Copy to WebDAV"," step after it, and set:\n",[237,238,239,245,267,273],"ul",{},[133,240,241,244],{},[14,242,243],{},"Connection",": your Nextcloud connection.",[133,246,247,250,251,254,255,258,259,262,263,266],{},[14,248,249],{},"Folder",": a template, ",[31,252,253],{},"{{ subject.createdAt | date: 'yyyy\u002FMM' }}",". Type ",[31,256,257],{},"{{"," to pick ",[137,260,261],{},"Current file › Uploaded",", then add the ",[31,264,265],{},"date"," filter.",[133,268,269,272],{},[14,270,271],{},"File name",": leave it empty to keep the file's name.",[133,274,275,278,279,144],{},[14,276,277],{},"If the name is taken",": ",[14,280,281],{},"Add a number",[133,283,184,284,144],{},[14,285,286],{},"Publish",[23,288,290],{"id":289},"test-it","Test it",[130,292,293,299,302],{},[133,294,184,295,298],{},[14,296,297],{},"Test"," in the editor and choose a file from your library.",[133,300,301],{},"Allow the test to send to outside services when it asks: this step stores a real file.",[133,303,304,305,308,309,312],{},"The run shows the step's ",[14,306,307],{},"Path",", such as ",[31,310,311],{},"\u002F2026\u002F12\u002Fsharex-window-capture.png",". Open Nextcloud and check that it's there.",[23,314,316],{"id":315},"turn-it-on","Turn it on",[10,318,319,320,323,324,155,327,144],{},"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 ",[14,321,322],{},"Run manually",", then select up to 100 files in ",[14,325,326],{},"Files",[14,328,329],{},"More actions › Run automation",[23,331,333],{"id":332},"what-to-expect","What to expect",[237,335,336,339,346],{},[133,337,338],{},"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.",[133,340,341,342,345],{},"The run history shows each copy's path. The step's ",[14,343,344],{},"Address"," output is the WebDAV address, which opens after Nextcloud asks you to sign in.",[133,347,348,349,352],{},"If Nextcloud is down, the step retries when it knows nothing was stored. When it can't tell, the run stops at ",[137,350,351],{},"Needs attention"," and asks before sending again, so a file is never stored twice by accident.",[23,354,356],{"id":355},"troubleshooting","Troubleshooting",[48,358,359,369],{},[51,360,361],{},[54,362,363,366],{},[57,364,365],{},"Problem",[57,367,368],{},"Fix",[62,370,371,379,389,403],{},[54,372,373,376],{},[67,374,375],{},"The test says the folder doesn't exist",[67,377,378],{},"Create the folder in Nextcloud, or check the end of the address.",[54,380,381,386],{},[67,382,383],{},[137,384,385],{},"The server refused the user name or password",[67,387,388],{},"Use an app password, and your Nextcloud user name rather than your email address.",[54,390,391,396],{},[67,392,393],{},[137,394,395],{},"Avenvail doesn't send requests to … because it's a private, local or reserved address",[67,397,398,399,402],{},"Nextcloud runs on your own network. An admin has to turn on ",[14,400,401],{},"Allow private network addresses"," for the connection.",[54,404,405,410],{},[67,406,407],{},[31,408,409],{},"webdav_file_exists",[67,411,412,414,415,418],{},[14,413,277],{}," is set to ",[14,416,417],{},"Fail the step",", and the file is already there.",[23,420,422],{"id":421},"make-it-your-own","Make it your own",[125,424,426],{"id":425},"move-old-videos-out-of-avenvail","Move old videos out of Avenvail",[10,428,429,430,433,434,437,438,441,442,445],{},"To keep large files only in Nextcloud, use ",[14,431,432],{},"Move to WebDAV"," instead. It copies the file, then moves it to Avenvail's trash once Nextcloud has stored it. Pair it with a ",[14,435,436],{},"Condition"," on ",[137,439,440],{},"Current file › Category"," is ",[137,443,444],{},"video"," so only videos move.",[125,447,449],{"id":448},"different-folders-for-different-files","Different folders for different files",[10,451,452,453,437,456,458,459,462,463,466,467,144],{},"Put a ",[14,454,455],{},"Switch",[137,457,440],{}," before the step, with a Copy to WebDAV step on each branch: images to ",[31,460,461],{},"Photos\u002F{{ subject.createdAt | date: 'yyyy' }}",", documents to ",[31,464,465],{},"Documents",", everything else to ",[31,468,469],{},"Other",[125,471,473],{"id":472},"copy-the-processed-file","Copy the processed file",[10,475,476,477,481,482,485,486,489],{},"In an ",[114,478,480],{"href":479},"\u002Fautomations\u002Fintake","intake workflow",", set the step's ",[14,483,484],{},"Content"," (under ",[14,487,488],{},"Which file?",") to the content a Resize or Convert image step produced, to keep the processed copy in Nextcloud as well.",[23,491,493],{"id":492},"privacy-cost-and-reliability","Privacy, cost and reliability",[237,495,496,499,502],{},[133,497,498],{},"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.",[133,500,501],{},"Nothing costs extra, apart from the storage on your Nextcloud.",[133,503,504],{},"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.",{"title":506,"searchDepth":507,"depth":508,"links":509},"",2,3,[510,511,512,516,517,518,519,520,525],{"id":25,"depth":507,"text":26},{"id":45,"depth":507,"text":46},{"id":122,"depth":507,"text":123,"children":513},[514,515],{"id":127,"depth":508,"text":128},{"id":199,"depth":508,"text":200},{"id":289,"depth":507,"text":290},{"id":315,"depth":507,"text":316},{"id":332,"depth":507,"text":333},{"id":355,"depth":507,"text":356},{"id":421,"depth":507,"text":422,"children":521},[522,523,524],{"id":425,"depth":508,"text":426},{"id":448,"depth":508,"text":449},{"id":472,"depth":508,"text":473},{"id":492,"depth":507,"text":493},"Copy every new upload into dated folders in Nextcloud or on a NAS over WebDAV, and move old videos out of Avenvail.","md",{},{"title":217},"\u002Fguides\u002Fback-up-to-nextcloud",{"title":5,"description":526},"7.guides\u002F9.back-up-to-nextcloud","wo60ph70ezgCIx7uI3lJsdkQbzt5JQ9DKspDdq_YdKY",[535,540],{"title":536,"path":537,"stem":538,"description":539,"children":-1},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","Read the text in every new screenshot with local OCR and store it, so search finds screenshots by what they say.",{"title":541,"path":542,"stem":543,"description":544,"children":-1},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps","Every trigger and step available today, with its settings and the values it produces.",[546,566,605,647,663,682,693,735,776,795,811],{"title":547,"path":548,"stem":549,"children":550,"icon":565},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[551,553,557,561],{"title":552,"path":548,"stem":549},"Introduction",{"title":554,"path":555,"stem":556},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":558,"path":559,"stem":560},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":562,"path":563,"stem":564},"Updating Avenvail","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":567,"icon":568,"path":569,"stem":570,"children":571,"page":604},"Library","i-lucide-folder","\u002Flibrary","2.library",[572,576,580,584,588,592,596,600],{"title":573,"path":574,"stem":575},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":577,"path":578,"stem":579},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":581,"path":582,"stem":583},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":585,"path":586,"stem":587},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":589,"path":590,"stem":591},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":593,"path":594,"stem":595},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":597,"path":598,"stem":599},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":601,"path":602,"stem":603},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":208,"path":606,"stem":607,"children":608,"icon":646},"\u002Fautomations","3.automations\u002F01.index",[609,611,615,619,623,627,630,634,638,642],{"title":610,"path":606,"stem":607},"Overview",{"title":612,"path":613,"stem":614},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":616,"path":617,"stem":618},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":620,"path":621,"stem":622},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":624,"path":625,"stem":626},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":628,"path":479,"stem":629},"Upload intake","3.automations\u002F06.intake",{"title":631,"path":632,"stem":633},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":635,"path":636,"stem":637},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":639,"path":640,"stem":641},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":643,"path":644,"stem":645},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":93,"path":648,"stem":649,"children":650,"icon":662},"\u002Fconnections","4.connections\u002F1.index",[651,652,656,658],{"title":610,"path":648,"stem":649},{"title":653,"path":654,"stem":655},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers",{"title":162,"path":195,"stem":657},"4.connections\u002F3.storage",{"title":659,"path":660,"stem":661},"Photos and documents","\u002Fconnections\u002Fphotos-and-documents","4.connections\u002F4.photos-and-documents","i-lucide-plug",{"title":664,"path":665,"stem":666,"children":667,"icon":681},"AI","\u002Fai","5.ai\u002F1.index",[668,669,673,677],{"title":610,"path":665,"stem":666},{"title":670,"path":671,"stem":672},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":674,"path":675,"stem":676},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":678,"path":679,"stem":680},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":683,"path":684,"stem":685,"children":686,"icon":692},"OCR","\u002Focr","5.ocr\u002F1.index",[687,688],{"title":610,"path":684,"stem":685},{"title":689,"path":690,"stem":691},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":694,"path":695,"stem":696,"children":697,"icon":734},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[698,699,702,706,710,714,718,722,726,730],{"title":610,"path":695,"stem":696},{"title":356,"path":700,"stem":701},"\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":703,"path":704,"stem":705},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":707,"path":708,"stem":709},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":711,"path":712,"stem":713},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":715,"path":716,"stem":717},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":719,"path":720,"stem":721},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":723,"path":724,"stem":725},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":727,"path":728,"stem":729},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":731,"path":732,"stem":733},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":736,"path":737,"stem":738,"children":739,"icon":775},"Guides","\u002Fguides","7.guides\u002F1.index",[740,741,745,749,753,757,761,765,769,773,774],{"title":610,"path":737,"stem":738},{"title":742,"path":743,"stem":744},"File scans in Paperless","\u002Fguides\u002Ffile-scans-in-paperless","7.guides\u002F10.file-scans-in-paperless",{"title":746,"path":747,"stem":748},"Send photos to Immich","\u002Fguides\u002Fphotos-to-immich","7.guides\u002F11.photos-to-immich",{"title":750,"path":751,"stem":752},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":754,"path":755,"stem":756},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":758,"path":759,"stem":760},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":762,"path":763,"stem":764},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":766,"path":767,"stem":768},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":770,"path":771,"stem":772},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":536,"path":537,"stem":538},{"title":217,"path":530,"stem":532},"i-lucide-book-open",{"title":777,"icon":778,"path":779,"stem":780,"children":781,"page":604},"Reference","i-lucide-library","\u002Freference","8.reference",[782,783,787,791],{"title":541,"path":542,"stem":543},{"title":784,"path":785,"stem":786},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":788,"path":789,"stem":790},"Live updates API","\u002Freference\u002Flive-updates","8.reference\u002F3.live-updates",{"title":792,"path":793,"stem":794},"HTTP API","\u002Freference\u002Fapi","8.reference\u002F4.api",{"title":796,"path":797,"stem":798,"children":799,"icon":810},"Development","\u002Fdevelopment","9.development\u002F1.index",[800,802,806],{"title":801,"path":797,"stem":798},"Local development",{"title":803,"path":804,"stem":805},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":807,"path":808,"stem":809},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":812,"path":813,"stem":814,"children":815,"icon":842},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[816,818,822,826,830,834,838],{"title":817,"path":813,"stem":814},"Comparing Avenvail",{"title":819,"path":820,"stem":821},"Avenvail and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":823,"path":824,"stem":825},"Avenvail and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":827,"path":828,"stem":829},"Avenvail and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":831,"path":832,"stem":833},"Avenvail and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":835,"path":836,"stem":837},"Avenvail and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":839,"path":840,"stem":841},"Avenvail and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796356613355,"2f161759-306b-4339-b980-62e506094076"]