Hostwinds Tutorials

Search results for:


Create Restic Backups Using Linux and Windows Commands

Tags: Restic 

As with any interaction with Restic, you must first initialize the repo to perform actions within restic. To do so, follow this guide.

You will run these commands from the shell terminal with Linux and PowerShell with Windows.

Backing up content within Restic is incredibly straightforward. To backup ALL content on a server, run the following command -

restic backup /

With the above commands, you can take backups of the full content of the file path specified. You can also specify specific folders or files to be backed up instead of or in addition to the above.

By default, the Hostwinds configuration takes daily backups of ALL content on your server. This is set up through a cronjob on Linux servers and a Scheduled Task in Windows.

Users can take on-demand backups of full or partial content on their server, as well as creating scheduled tasks to run their backups at specific time intervals.

To specify a directory to be backed up, you would run the following command -

restic backup /directoryPath

You can also backup individual files as opposed to a directory or full backup.

restic backup /directoryPathtoFile/File.txt

Backups being taken of content that has already been backed up will go by much faster than content that has not been backed up. This is due to the backups being incremental.

Written by Hostwinds Team  /  June 5, 2021