How do I transfer large files using rsync?

FTP Uploads on bisup

FTP uploads on our system have a maximum size of 5GB. If you need to upload files larger than this, you’d need to upload these via SSH.

Uploading on Windows

If you are using Windows, we recommend uploading files using WinSCP.

Uploading on Mac OS, Linux, or Unix-based Systems

For Mac OS, Linux, or other Unix-based systems, you can use rsync to move files over. First, ensure that rsync is installed and ready to use. On Mac OS X and most Linux distributions, rsync is pre-installed. You can verify this by running:

bashCopy code$ rsync --version

If the command fails, install it by running the appropriate command for your system:

bashCopy code$ sudo apt-get install rsync  # For Debian and Ubuntu

or

bashCopy code$ sudo yum install rsync  # For CentOS, Fedora, Rocky, and AlmaLinux

Using rsync to Upload Files to Your bisup Web Hosting Package

Generating an SSH Key Pair

First, generate SSH keys to access your bisup hosting package. Run the following command:

bashCopy code$ ssh-keygen

You’ll see a prompt like:

vbnetCopy codeGenerating public/private rsa key pair.
Enter file in which to save the key (/yourHomePath/.ssh/id_rsa):

Simply press Enter to save the key pair to the default location (~/.ssh/). You can choose a custom directory if needed. It may ask if you want to overwrite existing keys—only proceed if you want to replace the previous keys.

Optionally, set a passphrase for added security, or leave it empty.

The public key needs to be uploaded into the SSH Access section of your bisup hosting package. To verify it’s working, try connecting via SSH:

bashCopy code$ ssh -i /path/to/privatekey [email protected]

Once connected, you’re ready to start transferring files.

Transferring Files Using rsync

With SSH access set up, use the rsync command to move large files. Here’s the command structure:

bashCopy codersync [options] [file to move] [email protected]:[directory of package to move to]

For example, to transfer a backup file to your bisup hosting package:

bashCopy code$ rsync -v path/to/backup.zip [email protected]:/home/yourpath/public_html/

To find your hosting package’s home directory path, go to your bisup control panel, navigate to the “Manage Hosting” section, and look under “Account Information” for the home path.

You can specify an optional path within your hosting package, such as:

bashCopy code/home/yourpath/public_html/new-site/

If no path is provided, the file will be uploaded to the root directory of your package.

The -v option enables verbose output, which will display the progress and confirmation once the transfer is complete.

Using the US Data Center

If your bisup hosting is on the US data center, use ssh.us.yourdomain.com instead of ssh.gb.yourdomain.com.

Specifying a Custom SSH Key

If you created SSH keys in a custom location or with a custom name, specify the key in the rsync command with the -e option:

bashCopy code$ rsync -ve "ssh -i /path/to/key" path/to/backup.zip [email protected]:/home/yourpath/public_html/

Once the rsync process completes, you can verify the upload in the File Manager of your bisup control panel.

Previous Article

The Future of Work: Tech and Remote Trends

Next Article

How Tech Shapes the Future of Work in 2024

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *

Subscribe to our Newsletter

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨