Search The Hostwinds Guides Knowledge Base

Creating Backups with Restic

Share This Article [TheChamp-Sharing]

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 are able to take backups of the full content of the filepath specified, you can also specify specific folders or files to be backed up, instead of or in addition to the above.

By default, Hostwinds configuration takes daily backups of ALL content on your server. This is setup 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.