Misc. Guides

A selection of miscellaneous guides to help you better manage your service and applications.

Downloading from your Ultra.cc service

Will these download clients use my upload quota? Yes, downloading or sharing files will use the upload quota. With the exception of FTP on Port 21 & SSH on Port 22.

Downloading Files

At Ultra.cc we offer an application hosting service that allow customers to store and access files. There are several methods available to download files from your Ultra.cc service, each with their own pros and cons. This guide provides an overview of the different file download options.

FTP/SFTP

FTP and SFTP are secure file transfer protocols used to transfer files between two locations, such as your Ultra.cc service and local machine.

Pros:

Cons:

See Connecting using FTP guide for details on settings and usage.

LFTP

LFTP allows for segmented downloads, which breaks files into smaller "segments", allowing you to maximize bandwidth by downloading segments in parallel.

Pros:

Cons:

See Using LFTP guide for details on installation, configuration, and usage.

HTTP Access

HTTP Access provides a quick way to directly download files over HTTP from your Ultra.cc service using a web browser.

Pros:

Cons:

See Downloading using HTTP Access guide for details.

WebDAV Access

WebDAV Access is an extension of the HTTP protocol and offers an efficient way of managing your files remotely.

Pros:

Cons:

See Access your Ultra service with WebDAV guide for details.

Rclone

Rclone is a command line program that can sync files from your Ultra.cc service using FTP, FTPS, or SFTP. It supports incremental syncing, meaning it will only download new or changed files after the initial transfer.

Key Features:

Pros:

Cons:

For a step-by-step guide to setting up Rclone for automated transfers from your Ultra.cc service, click here.

Syncthing

Syncthing is a free, open-source, peer-to-peer file synchronization application. It synchronizes files between two or more computers.

Key Features:

Pros:

Cons:

Be cautious of scanning intervals, file watcher settings, and bandwidth limits to avoid resource exhaustion. See Using Syncthing guide for full configuration details.

Resilio Sync

Resilio Sync is a peer-to-peer file sync and share tool that keeps folders matched between devices.

Key features:

Pros:

Cons:

Resilio creates a decentralized sync network with military grade encryption, making it a versatile solution for sharing files from Ultra.cc. Refer to the Resilio setup guide for details.

Automated Sync Scripts

Scripts that can automatically sync Ultra.cc storage contents to another location on a regular schedule.

Pros:

Cons:

See Remote sync tool and FTP/SFTP transfer script guides for details on requirements, installation, and usage.

Recommendations

There are several methods available for downloading files from Ultra.cc that:

Review the pros and cons of each method to decide what works best based on your needs and technical background.

Sharing Files

Ultra.cc offers a variety of methods to share files from your ultra slot with friends, family or colleagues. This guide provides an overview of several options to match different use cases and comfort levels. These applications can be installed and managed from the UCP.

FileBrowser

FileBrowser provides seamless file management through your web browser.

With FileBrowser you can:

The pros of FileBrowser are:

The only con is:

For details on setting up File Browser, refer to the documentation Here.

Nextcloud

Nextcloud expands your Ultra.cc service into a private cloud platform with a sleek web interface.

Capabilities include:

The pros of Nextcloud are:

The Cons of Nextcloud are:

Follow the Nextcloud setup guide if interested Here.

ProFTPD

ProFTPD allows you to easily create FTP user accounts to share files from your Ultra.cc service.

The main benefits of ProFTPD are:

The tradeoff with ProFTPD is:

To install and manage ProFTPD, follow this guide Here.

Recommendations

Consider aspects like:

With various options like File Browser, Nextcloud and ProFTPD available at your disposal, you have flexible sharing capabilities on Ultra.cc to suit your needs!


If you are having trouble with this, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome in our Discord server

Delete Data on your Ultra.cc service

We do not keep backups of your data. Please take care while deleting data, as it will not be recoverable once deleted. We take no responsibility for the data you delete.

In this guide, we will show you how to delete data on your Ultra.cc service. No matter what plan you have chosen for your service, you will have a limited storage. It is not possible to add extra storage to an active service without upgrading to a higher tier plan, more info can be found here.

If you reach the maximum limit of your storage, your webserver and applications will be temporarily taken offline. They will remain offline until you have freed up some storage space and restarted the applications. However, services such as FTP/SFTP and SSH will remain active and accessible, to facilitate a way of deleting data on your service.

It is important to remember that Linux do not have a trash or recycling bin functionality. This means that any files or directories deleted will be instantly deleted and permanently lost. You should always keep backups of important data.

Instructions

The fastest and simplest way of deleting all your data and resetting your service to a fresh state, is to use our unofficial factory reset script. More info can be found here. For a more granular control that allows deletion of individual files and folders, continue reading.

SSH

Before proceeding, make sure to set an FTP/SSH password under the Connect tab on the UCP.

rm command

To avoid accidental deletion, add the -i option, and you will have to manually confirm each deletion.

The most basic way of deleting files and directories is by executing the rm command.

rm ~/path/to/filename.mkv
rm -r ~/path/to/directory

Midnight Commander

Deleting files via SSH can also be done from a CLI file explorer such as Midnight Commander aka mc. Detailed usage instructions can be found here.

Ncurses Disk Utility

Ncurses Disk Utility aka ncdu is another CLI file explorer that is available on all Ultra.cc servers. Detailed usage instructions can be found here.

FileBrowser

Just as the name suggests, FileBrowser is a webUI based application that lets you browse your files and directories from the comfort of a webUI. It also allows you to download, upload, delete, etc. Detailed usage instructions can be found in the dedicated FileBrowser guide.

FTP

One of the most user-friendly ways of managing your files and directories is via FTP.

Network Drive

To delete files and directories from the comfort of your native Windows file explorer, you can mount your Ultra.cc service as a network drive. Detailed instructions can be found here.

Identifying Missing Free Space

A common mistake while comparing your used storage is to compare GiB with GB.

If the Disk Usage on the UCP does not update after you have deleted your data. There might be a variety of reasons for why this is happening. Besides checking your storage quota from the UCP, it can also be checked via SSH.

Once connected to your service via SSH, simply execute quota -s and you will see your storage allotment and usage.

GB v/s GiB

One of the most common causes of missing free space is to mistakenly compare GB vs GiB. The Disk Usage on your UCP is represented in terms of GB. On the other hand, most applications display data size in terms of GiB.

If you are utilizing hardlinks, which is commonly used with Sonarr/Radarr. It is possible that you have only deleted one of the two linked files. To check if a file is hard linked, you can use the utility tool ncdu, as it will mark any hard linked file with an H in the far left column.

However, if you have already deleted one of the two hard linked files, it cannot be identified with ncdu. In this case, you need to manually check the two path locations. Usually, this would be your torrent downloads directory and your media directory.

Torrent Client Issues

When you delete torrents and their associated data from your torrent client, the change in storage space should be immediately updated. However, in some cases, the data will be held up by the torrent client and the UCP storage statistics will not be updated until you have restarted your torrent client.

Restore Application Backup

Take care while restoring an application backup to avoid accidental overwrites of data. Use at your own risk and only proceed if you are comfortable navigating a Linux terminal. If you are unsure, see our Your Ultra.cc Shell - A Beginner's Guide to get familiarized with the Linux terminal. Or you can request official support by submitting a ticket.

In this guide, we will show you how to create and restore a backup from one of the Ultra.cc officially supported applications. The majority of applications installed from the User Control Panel will have a configuration directory in ~/.apps. While torrent clients and some other applications are excepted from this, and you will find their configuration directories in ~/.config.

Introduction

An application backup is created when you press Upgrade & Repair on the UCP, or by manually executing app-<appname> upgrade or app-<appname> repair. Application backups are compressed into ZIP archives, and are stored in ~/.apps/backup. You can also create application backups manually by executing app-<appname> backup.

Backup

To create an application backup, follow the below instructions:

app-<appname> backup

Restore

To restore an application backup, follow the below instructions:

app-<appname> stop
cp -r ~/.apps/<appname> ~/.apps/<appname>.bak
ls -lah ~/.apps/backup
unzip ~/.apps/backup/<appname>-2000-00-00_00-00_00000000.zip -d ~/
tar -xzvf ~/.apps/backup/<appname>-2000-00-00_00-00_00000000.zip -C ~/
app-<appname> restart

Microsoft Edge Smartscreen Warning

If you are using the Edge web browser and access our services on the usbx.me domain, you might encounter a SmartScreen browser warning. This warning is a false positive report and there is no need to worry.

There is unfortunately nothing we can actively do to remove this warning. However, we have contacted Microsoft and requested the warning to be removed. You can help by clicking on More information and then select "Report that this site doesn't contain phishing threats".

Removal Options

  1. Click on More information and then "Continue to the unsafe site (not recommened)" option

  1. Switch off Smartscreen. Click on Start and then type Reputation-based protection and switch off Smartscreen for Microsoft Edge

  1. Use a different browser, such as Firefox or Chrome.



Crontab Explainer

Crontab is a powerful utility tool included in the base package of almost all Linux distros. It enables you to automate your workflow by executing commands and scripts as scheduled tasks, aka cron jobs.

In essence, crontab is a command-line interface to the cron daemon (or crond), which runs in the background and executes tasks per the schedule specified in the crontab file.

When adding scripts to cron jobs, especially those that spawn processes or perform lengthy operations, it is crucial to exercise caution. If a script fails to exit properly or if multiple instances of the same script run simultaneously, it could quickly lead to unwanted behaviors. Your automation workflow can be interrupted, or your process limit can be reached, which results in your service becoming inaccessible.

To prevent such issues, ensure your script(s) includes proper exit conditions and, if needed, uses a locking mechanism. The file lock method is a simple yet effective solution. This approach ensures that only one instance of the script runs at any given time, preventing conflicts and potential interruption of your service. An example of where the lock file method has been used, can be found here.

The Crontab Format

Before setting up cron jobs, it is essential to understand the syntax of the crontab file. Each line in the crontab file represents a cron job consisting of a schedule and a command. A quick and straightforward way to configure cron schedules is to use crontab.guru.

* * * * * command_to_execute

For example, to run a command at 4:30 AM every day, the cron job would look like this:

30 4 * * * command_to_execute

Special Characters

Crontab also supports special characters that help in defining more complex schedules:

Configure Cron Jobs

To access the crontab, where you can create or edit cron jobs, connect to your service via SSH. Once connected, you can access the crontab by executing crontab -e.

ultra@docs:~$ crontab -e
no crontab for ultra - using an empty one

Select an editor.  To change later, run 'select-editor'.
  1. /bin/nano        <---- easiest
  2. /usr/bin/vim.basic
  3. /usr/bin/mcedit
  4. /usr/bin/vim.tiny
  5. /bin/ed

Choose 1-5 [1]: 
1 12,00 * * * /home/username/scripts/myscript.sh >> /home/username/scripts/logs/myscript.log 2>&1
0 1 15,30 * * app-prowlarr upgrade >> /home/username/scripts/logs/prowlarr-upgrade.log 2>&1
0 2 15,30 * * app-jackett restart > /dev/null 2>&1

Unofficial Installation Scripts

Note: ALL scripts are deemed unofficial. That means official support will not be provided. The scripts are provided as-is and may not be updated or maintained by Ultra.cc. Clients are welcome to use and customize unofficial scripts for their unique needs and requirements. Unofficial support may be offered via Discord only and at the sole discretion of Ultra.cc staff. Only use these scripts if you are comfortable managing them, without official support.

In addition to the officially supported applications that can be installed from the User Control Panel, we also provide a wide variety of unofficial installation scripts. These scripts have been created for your convenience, to allow for easy installation of programming languages, applications and utility tools.