PHPackages                             itop/laravel-restic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. itop/laravel-restic

ActiveLibrary

itop/laravel-restic
===================

A Laravel package to backup your application

v1.0(5y ago)013MITPHPPHP ^7.3

Since Nov 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/itop-tm/laravel-restic)[ Packagist](https://packagist.org/packages/itop/laravel-restic)[ Docs](https://github.com/itop-tm/laravel-restic)[ RSS](/packages/itop-laravel-restic/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (9)Versions (2)Used By (0)

Schedule your backup using laravel and restic
=============================================

[](#schedule-your-backup-using-laravel-and-restic)

This package provides a class to help scheduling your backup using [restic](https://github.com/restic/restic)

Requirements
============

[](#requirements)

### Go installation

[](#go-installation)

Before using this package you have to install go and restic

[Go](https://golang.org) is an open source programming language that makes it easy to build simple, reliable, and efficient software.

If you have a previous version of Go installed, be sure to remove it before installing another.

Download the archive and extract it into /usr/local, creating a Go tree in /usr/local/go. For example, run the following as root or through sudo:

```
tar -C /usr/local -xzf go1.15.5.linux-amd64.tar.gz
```

Add /usr/local/go/bin to the PATH environment variable. You can do this by adding the following line to your $HOME/.profile or /etc/profile (for a system-wide installation):

```
export PATH=$PATH:/usr/local/go/bin
```

Note: Changes made to a profile file may not apply until the next time you log into your computer. To apply the changes immediately, just run the shell commands directly or execute them from the profile using a command such as source $HOME/.profile.

Verify that you've installed Go by opening a command prompt and typing the following command:

```
go version
```

Confirm that the command prints the installed version of Go.

---

### Restic installation

[](#restic-installation)

[Restic](https://restic.readthedocs.io) is a backup program that is fast, efficient and secure. It supports the three major operating systems (Linux, macOS, Windows) and a few smaller ones (FreeBSD, OpenBSD).

#### Ubuntu

[](#ubuntu)

On Debian, there’s a package called restic which can be installed from the official repos, e.g. with apt-get:

```
apt-get install restic
```

#### From Source

[](#from-source)

In order to build restic from source, execute the following steps:

```
git clone https://github.com/restic/restic
cd restic
go run build.go
```

if you have problems reaching go modules and repositories try:

```
GOPROXY=direct
go run build.go
```

or

```
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
```

For other installation guides for Linux distributions or windows go [Restic installation](https://restic.readthedocs.io/en/latest/020_installation.html)

Basic installation
------------------

[](#basic-installation)

You can install this package via composer using:

```
composer require itop/laravel-restic
```

The package will automatically register its service provider.

To publish the config file to config/restic.php run:

```
php artisan vendor:publish --provider="Itop\Restic\ResticServiceProvider"
```

This is the default contents of the configuration:

Configuring
-----------

[](#configuring)

This is the default contents of the configuration:

```
