Importing
Copy an existing library into Avenvail from Zipline or a folder on the server, with a preview first, progress you can pause, old Zipline links that keep working, and repeatable imports that skip what already came over.
Administrators import files in Settings › Imports. An import copies files into one user's library once. It is a migration, not a sync: later changes or deletions in the source are not followed.
Make a folder available
Avenvail only reads folders you mount into the container and list as import roots. Mount them read-only:
services:
avenvail:
volumes:
- avenvail-data:/data
- ./import:/import:ro
Avenvail__Imports__Roots__0=/import
Add more roots with __1, __2 and so on. Then docker compose up -d. Without a root, the folder importer shows as not set up. A Zipline import reads Zipline's upload folder through a root too, unless Zipline stored its files in a bucket.
| Setting | Default | Meaning |
|---|---|---|
Avenvail__Imports__Roots__N | (none) | Folders inside the container that imports may read. |
Avenvail__Imports__MaxItems | 500000 | Most files and folders one scan may list. |
Avenvail__Imports__MaxDepth | 64 | Deepest folder nesting a scan follows. |
Avenvail__Imports__BatchItems | 100 | Items copied before the import lets other background jobs run. |
Avenvail__Imports__BatchTime | 00:00:20 | Longest an import works before letting other jobs run. |
Avenvail__Imports__MaxExportBytes | 1073741824 | Largest Zipline export Avenvail reads (1 GiB). |
Import a folder
- Source. Choose Folder on the server.
- Configure. Pick the import root and, optionally, a folder inside it (
Screenshots/2024). Choose the user the files will belong to, and whether they go in a folder at the top of their library (created if missing, used as is if it exists) or at the top level itself. - Preview. Avenvail scans the source and shows what will happen: files to import, folders to create or reuse, files already imported, and files it will skip, with the reason for each. It shows the space needed and, for local storage, the space free. Nothing is copied yet.
- Import. Start the import. A progress bar shows items and bytes, including progress through a large file. You can leave the page; the import runs in the background.
- Report. When it finishes, the page lists what was imported, skipped and failed. Download report saves every item as CSV.
Imported files are private. Upload workflows don't run for them, so imports never trigger automations or AI steps. Thumbnails, image details and search update as they do for uploads.
What comes over from a folder
| Avenvail | From the folder |
|---|---|
| File name | The file name. Path and control characters are removed. |
| Upload date | The file's modified time, since most file systems don't keep a creation date that survives copying. |
| Folders | Each subfolder, including empty ones. A folder with the same name as one that already exists in the same place is reused instead of duplicated. |
Two files with the same name in one folder both come over; Avenvail allows that, as it does for uploads.
Avenvail skips, and lists in the report:
- Hidden files and folders (names starting with
.), plusThumbs.dbanddesktop.ini - Symbolic links, which are never followed, so an import can't read outside its root
- Devices, sockets and named pipes
- Files larger than
Avenvail__MaxUploadBytes - Folders Avenvail can't read, and folders nested deeper than
MaxDepth
Import from Zipline
Avenvail imports from Zipline 4.4 and later. On Zipline 3, upgrade to Zipline 4 first; Zipline 4 imports its own v3 data. Each import brings over one Zipline user; import other users in separate imports.
Before you start
- In Zipline, open Server settings › Export and download the export. It is a JSON file with your users, files, folders, tags and short links.
- Make Zipline's files readable by Avenvail:
- Local storage: mount Zipline's upload folder (its
DATASOURCE_LOCAL_DIRECTORY) into the Avenvail container under an import root, read-only. - S3 or R2: create an access key that can only read Zipline's bucket. Avenvail needs the endpoint, bucket, region and Zipline's
DATASOURCE_S3_SUBDIRECTORYif you set one.
- Local storage: mount Zipline's upload folder (its
The export also contains Zipline's environment variables and password hashes. Avenvail reads only what an import uses (files, folders, tags, short links and the URL routes) and never stores the export. Delete the export file once the migration is done.
Run the import
- Source. Choose Zipline.
- Configure.
- Upload the export and pick the Zipline user to import.
- Choose where Zipline kept its files. Storage keys are encrypted, used only to read files, and deleted when the import finishes (or is canceled). If items failed, they are kept until you retry or start a new import.
- Choose what happens to shared files:
- Keep old links working gives each public file a share and redirects its old Zipline addresses to it.
- Share public files gives each public file a share with a new Avenvail link. Old addresses don't redirect.
- Import everything privately creates no shares and no redirects.
- For old links, enter the old hostnames your Zipline links used. Avenvail fills them in from Zipline's domain settings. Check the files route (default
/u), the short link route (default/go) and whether links without extensions worked; Avenvail reads these from the export too. - Choose the Avenvail user and folder, as for a folder import.
- Preview shows files, folders and short links, which files get a share, how many old addresses will redirect, and how many can't because Avenvail or another import already uses them.
- Import and Report work as for a folder import.
What comes over from Zipline
| Avenvail | From Zipline |
|---|---|
| File name | The original file name, or Zipline's name when it had none. |
| Upload date | The upload date. |
| Folders | Zipline folders, nested as they were in Zipline 4.8 and later. |
| Tags | The file's tags. Favorites get a Favorite tag. |
| Imported views | With Keep view counts, the view count goes in a number field called Imported views (key imported_views). If you already have a field with that key and another type, view counts are left out. |
| Share | Public files only, with the file's expiry date when it had one. |
An import never makes a file more public than it was in Zipline. These files are always imported privately, with no share and no redirect, and the report gives the reason:
- Files with a password
- Files with a view limit
- Files whose expiry date had already passed
Public folder pages, file passwords and view limits are not carried over. Upload workflows don't run for imported files.
Old links
With Keep old links working, Avenvail answers these old addresses on each old hostname with a temporary redirect (302) to the file's Avenvail share:
| Old address | Leads to |
|---|---|
/u/{name} (your files route) | The raw file, so image embeds keep working. For text files, or when the Zipline user had view pages turned on, the share page. |
/raw/{name} and /r/{name} | The raw file. Adding ?download downloads it. |
/view/{name} | The share page. |
/u/{name} without its extension, /raw and /r too | The same file, when links without extensions were on. When several files share a name, the newest one, as in Zipline. |
/go/{code} and /go/{vanity} (your short link route) | The short link's destination. |
How old links behave:
- Point the old hostname at Avenvail. After the import, change DNS and your reverse proxy so the old hostname reaches Avenvail. Avenvail matches the hostname from the
Hostheader your proxy passes on (Caddy does this by default; with nginx, setproxy_set_header Host $host).X-Forwarded-Hostis ignored. - An old hostname only redirects. Any other request on it gets
404, and the dashboard stays on your Avenvail address. If Avenvail itself uses the old hostname, its own pages and API come first and old addresses that clash with them are reported as conflicts. - Redirects follow the share. Each request checks the share, so revoking it, letting it expire, or deleting or trashing the file stops the old address too. Redirects are never cached (
Cache-Control: no-store) and lead to your Avenvail address, never the request's hostname. Query strings aren't passed on. - Old addresses are never taken over. An address that another import already uses keeps its current destination, and the preview counts it as a conflict.
Only short links without a password or view limit come over, and only ones that lead to an http or https address that isn't one of the old hostnames. Disabled, restricted, unsafe and looping short links are listed as skipped. Avenvail has no short link feature of its own; imported short links only keep old links working.
After the import
On a finished Zipline import:
- Remove old links stops old addresses from redirecting. Files and their shares stay.
- Revoke imported shares revokes the shares the import created, which stops their old links too. Files stay in the library.
To bring over files uploaded to Zipline since, download a new export and start a new Zipline import with the same storage and user. Files imported before are skipped, and old links already in place are kept.
Pause, cancel and retry
- Pause stops after the current file. Resume continues where it stopped.
- Cancel stops after the current file and marks everything not yet copied as canceled. Files already imported stay in the library; cancel doesn't undo an import.
- Retry failed tries failed items again. A file that disappeared from the source fails as No longer in the source; put it back and retry. A file that changed between the scan and the copy fails as Changed after the scan; use Import new files to scan again.
- If Avenvail restarts during an import, it carries on by itself. If an import stops unexpectedly, its page offers Resume.
Only one import scans or runs at a time.
Import again
Import new files on a finished folder import scans the same source again for the same user. For Zipline, start a new Zipline import with a new export. Files imported before are skipped:
| Earlier import, then | This import |
|---|---|
| Nothing changed | Skips it as already imported. |
| The source file changed | Skips it. Avenvail never overwrites an imported file. |
| The file was deleted or trashed in Avenvail | Skips it. Avenvail doesn't bring deleted files back. |
| A new file appeared in the source | Imports it. |
Importing the same source into a different user copies everything again for that user. Choosing a different destination folder for the same user does not: those files are already imported.
Moving from another server
- Back up the old server.
- Run a first import while the old server is still in use.
- Stop new uploads to the old server.
- Copy over anything new, then import again (for Zipline, with a new export).
- Check the report and spot-check the library, including a few old links.
- Switch DNS and your reverse proxy to Avenvail, including the old hostnames.
- Keep the old backup until you are sure everything is there, then delete the Zipline export.
For a consistent result, import from a copy that isn't changing while the import runs.