Have an old Android phone sitting in a drawer? Instead of leaving it unused, you can turn it into a small private cloud for your photos, videos, documents, and other files. You do not need a NAS, a monthly storage plan, or root access. If you also want to compare this approach with a PC-based setup, see our guide on building a free private cloud storage server on Windows PC.
In this guide, we will use Termux and Copyparty. Copyparty is an open-source file server that can run on Android through Termux and gives you a web interface for browsing, uploading, downloading, searching, and viewing media. Its official documentation specifically includes an Android/Termux installation path.
What you are building: an old Android phone becomes the storage server; Termux provides the environment; Copyparty provides the browser interface; and your other devices connect over your home network. For remote access, the safer beginner approach is a private VPN rather than exposing the server directly to the public internet.
What You Need
- An old Android phone you no longer use as your main phone.
- Enough internal or supported external storage for the files you want to keep.
- A Wi-Fi network.
- Termux and Termux:API.
- A few minutes for the initial setup.
You do not need root for the basic setup. You also do not need to keep the phone connected to a PC after installation.
1. Install Termux
Install Termux from a trusted source. The Termux project notes that its F-Droid and GitHub builds are the stable choices for most users, while its Google Play build is a separate experimental branch with missing functionality compared with the stable builds.
Also install Termux:API. Copyparty’s Android instructions use both Termux and Termux:API.
Do not mix Termux installations from different sources. If you install the main Termux app from one source and its companion app from another, you can run into compatibility problems.
2. Give Termux Access to Your Storage
Open Termux and run:
termux-setup-storageAndroid will ask for storage permission. Allow it. Termux will then expose shared storage through its storage paths.
If Android later stops allowing access, the Copyparty documentation recommends force-quitting Termux, revoking its storage permission in Android settings, granting it again, and running termux-setup-storage once more.
3. Install Copyparty
Copyparty’s official Android instructions provide a one-command setup that upgrades Termux packages, enables storage access, installs Python and Termux:API, and installs Copyparty from PyPI.
yes | pkg upgrade && termux-setup-storage && yes | pkg install python termux-api && python -m ensurepip && python -m pip install --user -U copyparty && { grep -qE 'PATH=.*\.local/bin' ~/.bashrc 2>/dev/null || { echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && . ~/.bashrc; }; }When the command finishes, start the server with:
copypartyCopyparty also supports a --qr option that can make connecting from another device easier.
4. Add Photo and Video Thumbnails
If your main reason for building this server is storing photos and videos, thumbnails make the browser interface much more useful. Copyparty’s Android instructions recommend installing FFmpeg and Pillow for this.
pkg install ffmpeg
python3 -m pip install --user -U pillowThe official documentation notes that this adds roughly 132 MiB of storage use. You can skip these packages if you only need basic file storage and transfers.

5. Start Your Private Cloud on the Local Network
For your first test, keep everything on your home Wi-Fi. Start Copyparty:
copypartyCopyparty will show the address and port it is listening on. On another device connected to the same Wi-Fi, open that address in a browser.
You should now see the Copyparty interface. From there you can browse the shared directory, upload files, download them, and open supported media.
Important: a server that is reachable only from your home network is already useful. You do not need to expose it to the internet just because the word “cloud” is involved.
6. Share Only the Folder You Actually Want
Do not point a file server at your entire Android storage unless you have a specific reason to do so. Create a dedicated folder for the files you want to access from other devices.
mkdir -p ~/storage/shared/PrivateCloud
copyparty ~/storage/shared/PrivateCloudNow the server is focused on that directory rather than your whole phone. You can create subfolders such as Photos, Videos, Documents, and Backups.
7. Protect the Server With an Account
A local file server is still a server. If you give other people access to it, use Copyparty’s account and volume permissions instead of relying on an obscure URL.
Copyparty supports accounts and per-volume permissions. Its documentation shows examples where a volume can be read-only for everyone while write access is limited to a named account.
If you intend to make the server reachable beyond your home network, authentication should be considered mandatory. Never treat a public URL as a password.
8. Want Remote Access? Use a Private VPN
The safer beginner approach is to keep the server off the public internet and connect your devices through a private mesh VPN such as Tailscale. Your phone and your other devices join the same private network, and you access Copyparty using the phone’s VPN address.
Avoid forwarding a random port from your router directly to an Android file server unless you understand TLS, authentication, firewall rules, exposure, and ongoing maintenance. “It works from outside my house” is not the same thing as “it is safely configured.”
9. Keep the Old Phone Running Reliably
- Keep it on reliable Wi-Fi. The server is only useful while the phone is connected.
- Use a good charger. If the phone will remain plugged in, avoid a damaged or unreliable adapter and cable.
- Watch heat. Do not leave an old phone in direct sunlight or inside an unventilated enclosure.
- Check Android battery restrictions. Android manufacturers can be aggressive about stopping background apps.
- Do not fill the storage completely. Leave free space for Android and temporary operations.
- Restart and test occasionally. A server that has not been checked for months is not a reliable backup.
Android’s background restrictions vary by manufacturer. If Termux is repeatedly being killed, check your phone’s battery optimization and background-app settings for Termux.

10. This Is Not a Backup by Itself
This is the most important limitation of the whole project.
If your only copy of your photos is stored on the old phone, you have not created a backup. You have simply moved your files from one device to another.
A better arrangement is to keep at least one additional copy on another storage device or another trusted backup service. The old phone can become your convenient private file server while a separate copy protects you from phone failure, accidental deletion, theft, or storage corruption.
11. Can It Replace Google Photos?
Not completely. Copyparty is primarily a file server, although it has useful media features such as thumbnails and browser-based media access. It is a different tool from a full photo-management platform.
If your priority is simple private file access using hardware you already own, this setup is useful. If you need sophisticated automatic photo backup, face recognition, timeline-based photo management, multi-user libraries, or a polished mobile-first photo experience, a dedicated photo-management server or commercial cloud service may be a better fit.
12. Why This Setup Is Useful
- No monthly storage subscription for the server itself.
- Uses hardware you may already have.
- Files remain under your control.
- Works through a normal web browser.
- Supports uploads and downloads.
- Can handle media thumbnails with the optional dependencies.
- Can be expanded later with private remote networking.
Final Thoughts
Turning an old Android phone into a private cloud is not a magic replacement for a NAS. What makes the idea interesting is how little hardware you actually need for a useful personal file server.
With Termux and Copyparty, an old phone can become a small always-available storage endpoint for your home network. Start locally, share only a dedicated folder, add authentication before giving anyone else access, and keep a second copy of anything you cannot afford to lose.
That combination gives the old phone a useful second life without pretending that a spare smartphone has the reliability or storage flexibility of a dedicated NAS.
Sources and Further Reading
Disclosure: This guide uses Copyparty, an open-source project. The instructions are based on its current official documentation; Android background behavior can vary by device manufacturer and Android version.



