iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
A reliable Nextcloud VPS backup is a matched set of five items: the configuration directory, the data directory, the theme directory, any separately installed custom apps, and the database. Put the instance in maintenance mode before copying anything, keep at least one copy outside the VPS, and restore the files and database as one set. After recovery, run maintenance:data-fingerprint so desktop and mobile clients recognize the restored state instead of treating it as an unexpected divergence.
The procedure below covers MariaDB, MySQL, SQLite, and PostgreSQL, including the commands to dump and import each database type and the checks to perform before users reconnect.
Free tools Windows power users keep installed
One-click scans. No signup required.
What a complete Nextcloud backup contains
Nextcloud stores an installation’s state in more than the web-directory files. The current administration guidance identifies five items to retain:
- Configuration directory: This includes
config.php, which contains database connection details and other instance settings. - Data directory: User files and the metadata Nextcloud needs to serve them. The location is defined by the instance configuration and may be outside the web root.
- Theme directory: Preserve it when the instance uses a custom theme.
- Custom apps directory: Include this when apps were installed outside the standard Nextcloud distribution.
- Database: This holds file-cache records, shares, users, calendars, contacts, app data, and other structured state that cannot be recreated from the files alone.
A filesystem-only copy is incomplete because the database will no longer describe the files accurately. A database-only dump is also incomplete because the user data and configuration are missing. Recovery requires both parts from a consistent point in time.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
Prepare the VPS for a consistent backup
Schedule a maintenance window
Copying files while users are uploading, editing, or deleting them can produce a set in which the database and filesystem disagree. Plan a short maintenance window and notify users that the web interface and sync activity will pause.
Enable maintenance mode as the web-server user
On a typical Debian or Ubuntu installation whose HTTP user is www-data, run:
sudo -E -u www-data php occ maintenance:mode --on
The command must be run from the Nextcloud installation directory, or you must provide the correct path to occ. Maintenance mode locks sessions of logged-in users and prevents new logins. Existing requests should be allowed to finish before the copy begins.
Choose a destination outside the Nextcloud environment
Write the directory copy and database dump to storage that is not the live Nextcloud directory. A second disk, a separate VPS, or an object-storage workflow can serve as the destination. At least one copy must be outside the VPS or Nextcloud environment; otherwise a failed disk, compromised account, or lost VPS can destroy both the live instance and its “backup.”
Restrict access to the destination. The configuration contains database credentials, and the data directory can contain private user content. Use filesystem permissions and, where your storage system supports it, encryption with carefully controlled keys.
Back up the Nextcloud directories
Copy the configuration, data, theme, and custom-app content while maintenance mode is active. If those directories are all beneath the installation directory, the documented pattern is:
rsync -Aavx nextcloud/ nextcloud-dirbkp_`date +"%Y%m%d"`/
The trailing slash on nextcloud/ means that its contents are copied into the dated destination. Replace the source and destination with your actual paths when the data directory or custom apps are stored elsewhere. Confirm that the resulting backup contains the configuration directory, the complete data directory, the theme directory, and every custom app required by the installation.
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
rsync options in this example preserve ACLs and extended attributes while staying on the source filesystem. Review the output and verify the destination has the expected size and directory structure before proceeding to the database dump.
Dump the database that Nextcloud uses
Use the client corresponding to the configured database engine. The examples below create a dated dump in the current directory. Substitute the actual host, account, password, and database name. Keep the dump under the same access controls as the directory copy.
| Database engine | Backup command | Important detail |
|---|---|---|
| MariaDB |
|
For installations using four-byte character support, add --default-character-set=utf8mb4. |
| MySQL |
|
For installations using four-byte character support, add --default-character-set=utf8mb4. |
| SQLite |
|
Use the actual SQLite file path configured by the instance. |
| PostgreSQL |
|
The password is supplied to the command through the PGPASSWORD environment variable in this example. |
--single-transaction gives MariaDB and MySQL a transaction-consistent dump without holding the whole application in a write lock. Maintenance mode is still required for the file copy and keeps application writes from changing state while the dump and copy are coordinated.
Recommended Free Tools
After the dump finishes, check that the file exists, is readable only by the intended administrators, and is not empty. Record which Nextcloud version, database engine, and backup date produced the set. A dated directory copy paired with a dated SQL dump makes it possible to select the same recovery point later.
Turn the copy into a recoverable backup set
Keep paired artifacts
Store each directory copy together with the database dump made during the same maintenance window. Do not rotate a database dump independently from the files it describes. If you use automated retention, delete complete sets rather than individual components.
Use more than one location
Maintain the live VPS copy only as one layer. Replicate a backup set to storage outside that VPS, and consider a further independent location for protection against an account or site-wide incident. The exact schedule and retention depend on how much data loss your users can tolerate; no universal frequency or restore-time figure is established for Nextcloud installations.
Protect secrets and keys
The configuration file contains database credentials, and user files may be sensitive. Apply least-privilege access to backup storage and transfer channels. If you encrypt archives or use an encrypted backup workflow, document where the decryption key is held and who can recover it. An encrypted backup with a lost key is not a usable backup.
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Restore Nextcloud on the original or a rebuilt VPS
A restore can target the original host after data loss or a newly prepared VPS. The destination must have a compatible web/PHP/Nextcloud setup and the database service ready. Preserve the same database engine and credentials where practical; if connection details change, update the restored configuration before bringing the service online.
1. Put the destination in maintenance mode
Prevent logins and writes while you replace files and database contents:
sudo -E -u www-data php occ maintenance:mode --on
If the old installation is unavailable, enable maintenance mode as soon as the restored code and configuration are in place, before exposing the site to users.
2. Restore the saved directories
Copy the saved configuration, data, theme, and custom apps back to the corresponding paths. For a backup whose contents are in nextcloud-dirbkp/, the documented pattern is:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
rsync -Aax nextcloud-dirbkp/ nextcloud/
Check that the restored files are owned and readable by the account that runs PHP for the site. Do not accidentally nest the backup one directory too deep; the restored config directory and its config.php must be where the Nextcloud installation expects them, and the data directory must match the path configured in that file.
3. Remove the destination database contents
Before importing a full dump, remove the existing tables. The administration guidance recommends dropping and recreating the database rather than mixing old and restored tables. Perform this operation only after confirming that the selected dump is the intended recovery point and that any needed current data has been preserved separately.
4. Import the matching database dump
| Database engine | Restore command | Preparation required |
|---|---|---|
| MariaDB |
|
Drop and recreate the target database or remove its existing tables first. |
| MySQL |
|
Drop and recreate the target database or remove its existing tables first. |
| SQLite |
|
Remove the existing SQLite file, then create it by importing the dump. |
| PostgreSQL |
|
Use the restored database name and ensure the target database has been recreated or cleared first. |
Use the same engine that produced the dump. A MariaDB or MySQL dump is not interchangeable with PostgreSQL or SQLite without a separate migration process. Watch the client output for authentication, permission, character-set, or syntax errors; an import that stops partway through is not a completed restore.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
5. Reconcile file state for sync clients
After restoring the data directory or database, run:
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchsudo -u www-data php occ maintenance:data-fingerprint
This changes the ETag communicated to sync clients. The clients can then recognize that files were modified by the recovery and reconcile their local state instead of assuming that the server still has the pre-incident version.
6. Test the restored instance while it is still closed
Use an administrator account and a representative regular account to check:
- Web login and logout.
- Several representative files, including a download and an upload.
- Existing shares and permissions.
- Calendars and contacts.
- Background jobs and their recent execution status.
- External storage integrations, if the instance uses them.
- Custom apps and the custom theme.
Inspect the web interface and server logs for database errors, missing-app errors, permission failures, and unavailable storage. A successful command-line import alone does not prove that the application is usable.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitches7. Disable maintenance mode only after validation
When the checks pass, reopen the service:
sudo -u www-data php occ maintenance:mode --off
Ask a user with an existing desktop or mobile client to confirm that synchronization resumes without mass re-uploads, conflict storms, or unexpected deletions. Keep the recovered backup set until you have established that the instance is stable.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.How to avoid breaking desktop and mobile synchronization
Sync problems after a restore usually come from treating the filesystem and database as separate recoveries or from skipping the fingerprint update. Use this order:
- Keep users out with maintenance mode.
- Restore the matching configuration, data, theme, and custom apps.
- Replace the database with the dump from that same recovery point.
- Run
maintenance:data-fingerprint. - Validate representative files and shares.
- Disable maintenance mode and observe a client sync.
Do not delete local client data merely because the server was restored. Let the client compare the changed server ETag and report any conflicts. Preserve client-side copies until the server state has been verified, especially when the incident involved possible writes after the backup date.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Using the official Nextcloud Backup app as an additional workflow
The official nextcloud/backup project documents encrypted backup points and the command occ backup:point:restore. Its setup export contains encryption keys. Preserve both the exported setup and its encryption key; losing either can prevent decryption of encrypted backup points.
Treat this app as an additional workflow rather than assuming it replaces a tested copy of the configuration, data, theme, custom apps, and database. Behavior can depend on the app and Nextcloud versions in use. Verify the exact version-specific restore procedure, and perform a restore drill before relying on it as the only disaster-recovery method.
Choosing a backup approach
Evaluate any manual, snapshot-based, or application-assisted design against the same practical questions:
- Consistency control: Does it use maintenance mode or a coordinated snapshot that prevents mismatched file and database state?
- Scope: Does it include configuration, data, theme, custom apps, and database, or only a partial copy?
- Restore portability: Can the set be restored only on the same host, or can it rebuild the service on a replacement VPS?
- Off-site durability: Is at least one copy outside the Nextcloud environment?
- Encryption and key custody: Are private data and database credentials protected, and can the decryption key be recovered?
- Retention and deletion recovery: Can you select an older complete set after accidental deletion or corruption?
- Restore evidence: Have you actually imported a set and tested logins, files, shares, jobs, calendars, contacts, and external storage?
A fast backup that has never been restored is an assumption, not evidence. Schedule a controlled drill on a separate destination and document the commands, paths, credentials, ownership, and validation results.
Troubleshooting common restore failures
The site reports a database connection error
Check that the restored config.php points to the intended host, database name, user, and password. Confirm that the database service is running and that the account has permission to connect from the VPS. If credentials changed during a rebuild, update the configuration and test the connection before disabling maintenance mode.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Files appear missing even though the copy completed
Verify the configured data-directory path and ensure the backup was copied there rather than into a similarly named subdirectory. Check filesystem ownership and permissions for the PHP/HTTP user. Also confirm that the database dump came from the same point in time; a database that predates or postdates the file copy can make valid files appear absent or stale.
Custom functionality or branding is gone
Recheck the custom apps and theme directories. Standard application files alone do not restore separately installed apps or a custom theme. Confirm that each required app is present and compatible with the restored Nextcloud version.
Clients show conflicts or begin unexpected changes
Confirm that maintenance:data-fingerprint was run after both the data directory and database were restored. Keep maintenance mode enabled while investigating, preserve local client copies, and inspect representative server files before allowing broad synchronization.
An encrypted backup cannot be opened
Locate the exported Backup-app setup and its encryption key. Without the key material that was created during setup, encrypted backup points may be impossible to decrypt. Do not discard key exports when rotating backup storage.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Final operational checklist
- Maintenance mode was enabled before the copy.
- The backup set contains configuration, data, theme, custom apps, and database.
- The database dump matches the directory-copy date and engine.
- At least one complete set is outside the VPS or Nextcloud environment.
- Backup files and credentials are protected by appropriate access controls.
- The restore process includes dropping or clearing the destination database before import.
maintenance:data-fingerprintwas run after recovery.- Logins, files, shares, calendars, contacts, background jobs, external storage, and custom apps were tested.
- Maintenance mode was disabled only after those checks passed.
- A restore drill has demonstrated that the documented set is usable.
The Bottom Line
Back up Nextcloud as one consistent set: configuration, data, theme, custom apps, and database. Use maintenance mode during both capture and recovery, keep a complete copy off the VPS, import the matching database, run maintenance:data-fingerprint, and test the application before reopening it to sync clients.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

