# \[Archivist\] Backup your server with rsync

**URL:** https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747
**Category:** Apps
**Tags:** archivist
**Created:** [November 3, 2017, 5:03pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747 "2017-11-03T17:03:37Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [November 3, 2017, 5:03pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/1 "2017-11-03T17:03:37Z")

</div>

Hi pals

Again, I’m back with a new app !  
Because my [previous app](https://forum.yunohost.org/t/new-app-ssh-chroot-dir/3639) is quite incomplete if you don’t have anything for managed your backups, now we have [Archivist](https://github.com/YunoHost-Apps/archivist_ynh) \o/

This new app (like the 2 previous, more a cli script than a real app) will give you a easy way to make periodical backups and send them where you want, without any action from your part.

How it works ?  
It’s quite simple, there’s a config file where you can say which part of YunoHost you want to backup, and where you can also add all the directories or files you want to backup too.

After that, at the end of this same config file, you can add as many recipient as you want.  
Your backups can be encrypted before be sending, and you can even exclude some parts for a recipient, if you want.  
Periodically (each day to each month, as you want), your backups will be updated, then send to your different recipients.

You can choose how your backups will be sends, for now it can be only on a local directory or by ssh with rsync.  
But you can add [easily](https://github.com/maniackcrudelis/archivist/blob/master/senders/How%20to%20add%20a%20new%20sender.md) a new manner of sending your backups by adding a new script. (And let the community enjoy your work by adding this script to the [repository of archivist](https://github.com/maniackcrudelis/archivist).)

To see how you can used Archivist for your usage, please have a look to the [readme about the configuration](https://github.com/maniackcrudelis/archivist/blob/master/Configuration.md) of Archivist.

* * *

Salut les amis

Encore un fois, me revoilà avec un nouvelle application !  
Parce que ma [précédente application](https://forum.yunohost.org/t/new-app-ssh-chroot-dir/3639) est un peu incomplète si vous n’avez rien pour gérer vos sauvegardes, maintenant nous avons [Archivist](https://github.com/YunoHost-Apps/archivist_ynh) \o/

Cette nouvelle application (comme les 2 précédentes, plus un script CLI qu’une véritable app) va vous donner un moyen simple de faire des sauvegardes régulières et les envoyer là où vous voulez, sans aucune action de votre part.

Comment ça marche ?  
C’est assez simple, il y a un fichier de configuration dans lequel vous pouvez dire quelle partie de YunoHost vous voulez sauvegarder, et où vous pouvez aussi ajouter n’importe quel répertoires ou fichiers vous voulez égaement sauvegarder.

Après ça, à la fin de ce même fichier de config, vous pouvez ajoutez autant de destinataire que vous le voulez.  
Vos sauvegardes peuvent être chiffrées avant d’être envoyée, et vous pouvez même exclure certaines parties pour ce destinataire, si vous le souhaitez.  
Régulièrement (tout les jours à tout les mois, comme vous voulez), votre sauvegarde sera mise à jour, puis envoyée à tous vos destinataires.

Vous pouvez choisir comment vos sauvegardes sont envoyés, pour le moment ça ne peut être que dans un répertoire local ou par ssh avec rsync.  
Mais vous pouvez ajouter [facilement](https://github.com/maniackcrudelis/archivist/blob/master/senders/How%20to%20add%20a%20new%20sender.md) un nouveau moyen d’envoyer vos backup en ajoutant un nouveau script. (Et permettez à la communauté de profiter de votre travail en ajoutant ce script au [dépôt de archivist](https://github.com/maniackcrudelis/archivist).)

Pour savoir comment utiliser Archivist pour votre usage, jetez un coup d’oeil au [readme sur la configuration](https://github.com/maniackcrudelis/archivist/blob/master/Configuration_fr.md) d’Archivist.

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [November 3, 2017, 6:46pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/2 "2017-11-03T18:46:04Z")

</div>

Will it delete the old backup after the next backup is created ? And can it be use as multi-instance so that each app can be backed up at different time of the day because if the data to be backed up is huge then it can take hours to backup for one large file.

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [November 3, 2017, 6:57pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/3 "2017-11-03T18:57:33Z")

</div>

> [@kanhu](#):
>
> Will it delete the old backup after the next backup is created ?

Yes, tar remove a backup before making a new one.  
But, only if there any modification to do in this backup.  
Somehow, it could be a nice idea to work to have a copy of each replaced backup. And keep a defined number of previous backups.

> [@kanhu](#):
>
> And can it be use as multi-instance

It is yes.

---

<div class="post-metadata">

### Author: ![Sty\_X](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@Sty\_X](https://forum.yunohost.org/u/Sty_X)
#### Post date: [November 17, 2017, 6:20pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/4 "2017-11-17T18:20:53Z")

</div>

Salut et merci beaucoup pour cette app !

Je suis relativement novice sous linux, je voudrais me servir de ton app sur mon serveur ynh mais j’ai quelques questions concernant la configuration d’Archivist.

- Une fois l’app installée, comment modifier la fréquence de sauvegardes et l’heure à laquelle elles seront réalisés (en pleine nuit par exemple).

- J’ai monté un disque dur externe à l’emplacement /media/backup puis j’ai modifié la ligne “# Backup directory” du fichier Backup\_list.conf de cette façon “backup\_dir=/media/backup”. Peux-tu me confirmer que de cette façon les sauvegardes seront bien stockées sur mon disque dur externe.

Merci pour ton boulot et pour ton aide !

---

<div class="post-metadata">

### Author: ![nicofrand](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nicofrand/32/892_2.png) [@nicofrand](https://forum.yunohost.org/u/nicofrand)
#### Post date: [November 27, 2017, 7:45am UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/5 "2017-11-27T07:45:40Z")

</div>

Hi,

thanks for this nice app !

I tried to run it but met an issue:

```bash
> Encrypt backups
fuse: device not found, try 'modprobe fuse' first
fuse failed. Common problems:
- fuse kernel module not installed (modprobe fuse)
- invalid options -- see usage message

```

I am not sure whether it lacks a dependency or a configuration step ?

I also had this warning:

```bash
Warning: ls: cannot access /etc/cron.d/yunohost*: No such file or directory

```

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [November 27, 2017, 12:03pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/6 "2017-11-27T12:03:09Z")

</div>

Hi nicofrand

can you say me what kind of server you use ? A VPS ? A virtual machine ?  
Maybe your server doesn’t support fuse.

Did you try to load the module fuse, as the message said ?

---

<div class="post-metadata">

### Author: ![nicofrand](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nicofrand/32/892_2.png) [@nicofrand](https://forum.yunohost.org/u/nicofrand)
#### Post date: [November 27, 2017, 12:15pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/7 "2017-11-27T12:15:04Z")

</div>

It’s an old kimsufi, not a VPS nor a VM.

Running `modprob fuse` outputs

```bash
modprobe: ERROR: could not insert 'fuse': Unknown symbol in module, or unknown parameter (see dmesg)

```

And `dmesg`:

```bash
[62695517.917773] fuse: Unknown symbol setattr_prepare (err 0)
[62695517.920043] fuse: Unknown symbol sysfs_create_mount_point (err 0)
[62695517.922690] fuse: Unknown symbol sysfs_remove_mount_point (err 0)
[62695588.180485] fuse: Unknown symbol setattr_prepare (err 0)
[62695588.186081] fuse: Unknown symbol sysfs_create_mount_point (err 0)
[62695588.188379] fuse: Unknown symbol sysfs_remove_mount_point (err 0)

```

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [November 27, 2017, 12:23pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/8 "2017-11-27T12:23:16Z")

</div>

According to the great friend stackoverflow, it appears your kernel can be too old.

If you can’t upgrade your kernel, you can desactive the encryption which use fuse.

---

<div class="post-metadata">

### Author: ![nicofrand](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nicofrand/32/892_2.png) [@nicofrand](https://forum.yunohost.org/u/nicofrand)
#### Post date: [November 27, 2017, 12:36pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/9 "2017-11-27T12:36:23Z")

</div>

```bash
root@nicofrand:/home/admin# uname -r
3.16.0-4-amd64

```

I guess upgrading from jessie to the latest debian might do it but I am not sure YNH works on the latest debian ?

---

<div class="post-metadata">

### Author: ![JimboJoe](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jimbojoe/32/545_2.png) [@JimboJoe](https://forum.yunohost.org/u/JimboJoe)
#### Post date: [November 27, 2017, 12:52pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/10 "2017-11-27T12:52:32Z")

</div>

YunoHost is not compatible yet with Debian “Stretch” 9.0: [Debian Stretch | YunoHost is NOT YET compatible | YunoHost N’EST PAS ENCORE compatible](https://forum.yunohost.org/t/debian-stretch-yunohost-is-not-yet-compatible-yunohost-nest-pas-encore-compatible/3048/6)

---

<div class="post-metadata">

### Author: ![nicofrand](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nicofrand/32/892_2.png) [@nicofrand](https://forum.yunohost.org/u/nicofrand)
#### Post date: [November 27, 2017, 6:12pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/11 "2017-11-27T18:12:07Z")

</div>

Then how are people using Archivist ? The kernel version is limited by debian version.

```bash
# apt-cache search linux-image                                                                                                                                               
linux-headers-3.16.0-4-amd64 - Header files for Linux 3.16.0-4-amd64                                                                                                                                   
linux-image-3.16.0-4-amd64 - Linux 3.16 for 64-bit PCs                                                                                                                                                 
linux-image-3.16.0-4-amd64-dbg - Debugging symbols for Linux 3.16.0-4-amd64                                                                                                                            
linux-headers-4.9.0-0.bpo.3-amd64 - Header files for Linux 4.9.0-0.bpo.3-amd64                                                                                                                         
linux-headers-4.9.0-0.bpo.3-rt-amd64 - Header files for Linux 4.9.0-0.bpo.3-rt-amd64                                                                                                                   
linux-headers-4.9.0-0.bpo.4-amd64 - Header files for Linux 4.9.0-0.bpo.4-amd64                                                                                                                         
linux-headers-4.9.0-0.bpo.4-rt-amd64 - Header files for Linux 4.9.0-0.bpo.4-rt-amd64
linux-image-4.9.0-0.bpo.3-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-0.bpo.3-amd64-dbg - Debug symbols for linux-image-4.9.0-0.bpo.3-amd64
linux-image-4.9.0-0.bpo.3-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-0.bpo.3-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-0.bpo.3-rt-amd64
linux-image-4.9.0-0.bpo.4-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-0.bpo.4-amd64-dbg - Debug symbols for linux-image-4.9.0-0.bpo.4-amd64
linux-image-4.9.0-0.bpo.4-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-0.bpo.4-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-0.bpo.4-rt-amd64
linux-headers-4.9.0-2-grsec-amd64 - Header files for Linux 4.9.0-2-grsec-amd64
linux-image-4.9.0-2-grsec-amd64 - Linux 4.9 for 64-bit PCs, Grsecurity protection
linux-image-grsec-amd64 - Linux image meta-package, grsec featureset
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package)
linux-image-4.9.0-0.bpo.2-amd64 - Linux 4.9 for 64-bit PCs (signed)
linux-image-4.9.0-0.bpo.2-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT (signed)
nvidia-kernel-3.16.0-4-amd64 - NVIDIA binary kernel module for Linux 3.16.0-4-amd64

```

Or, do I have to install jessie backports ?

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [November 27, 2017, 6:25pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/12 "2017-11-27T18:25:05Z")

</div>

There’s something else, I use the same kernel on my server and I have no problem with fuse.  
Something in your server seems to block fuse.

---

<div class="post-metadata">

### Author: ![nicofrand](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nicofrand/32/892_2.png) [@nicofrand](https://forum.yunohost.org/u/nicofrand)
#### Post date: [November 28, 2017, 12:48pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/13 "2017-11-28T12:48:26Z")

</div>

Would you mind telling me the ouput of `apt-cache policy fuse` on your machine, please ? Did you install anything else (fuse2fs maybe ?) ?

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [November 28, 2017, 1:14pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/14 "2017-11-28T13:14:18Z")

</div>

> [@nicofrand](#):
>
> Would you mind telling me the ouput of apt-cache policy fuse on your machine, please ? Did you install anything else (fuse2fs maybe ?) ?

```auto
fuse:
  Installé : 2.9.3-15+deb8u2
  Candidat : 2.9.3-15+deb8u2
 Table de version :
 *** 2.9.3-15+deb8u2 0
        500 http://ftp.debian.org/debian/ jessie/main i386 Packages
        500 http://security.debian.org/ jessie/updates/main i386 Packages
        100 /var/lib/dpkg/status

```

fuse2fs is not installed on my server. I’ve not installed anything else to make it working. And, more than anything else, I tried this app with a virtual machine with nothing else except YunoHost.

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [December 6, 2017, 1:22pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/15 "2017-12-06T13:22:44Z")

</div>

@Maniack_Crudelis  
I am unable to send my backup through rsync ssh. What is the role of destination directory? Do we need to create the destination before hand at the other side?  
Can you give an example of ssh\_chroot\_dir for archivist Eg. ssh\_host:test.tld user , ssh\_user=test, ssh\_pwd=test123 ?

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 6, 2017, 7:04pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/16 "2017-12-06T19:04:56Z")

</div>

Hi kanhu

The destination directory should exist on the other side. This option is used by rsync to know where it’s supposed to copy the files on the other side.  
You can see that as the destination of a `cp`, except here, this destination is relative to your ssh environment.

If you want to use ssh\_chroot\_dir with archivist.  
Let’s say your ssh\_chroot\_dir is like that

```auto
ssh_user = test
password = test123
pub_key = Not used...
size = 10G

```

Your configuration of archivist should be like that:

```auto
type =rsync_ssh
destination directory =/
ssh_host =test.tld
ssh_user =test
ssh_port =22
ssh_pwd =test123

```

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [December 6, 2017, 7:09pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/17 "2017-12-06T19:09:02Z")

</div>

I get an error Backup YunoHost core and apps

> > Make a temporary backup for wordpress\_backup
> > 
> > > This backup is the same than the previous one  
> > > Clean old backup files  
> > > Encrypt backups  
> > > fuse: mountpoint is not empty  
> > > fuse: if you are sure this is safe, use the ‘nonempty’ mount option  
> > > fuse failed. Common problems:

- fuse kernel module not installed (modprobe fuse)
- invalid options – see usage message

Edited: **After few minutes this error was gone automatically.**

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [December 6, 2017, 7:25pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/18 "2017-12-06T19:25:34Z")

</div>

I still not able to see any files in ssh\_chroot\_dir

> type =rsync\_ssh  
> destination directory =/  
> ssh\_host =test.tld  
> ssh\_user =test  
> ssh\_port =22  
> ssh\_pwd =test123

Thu Dec 7 00:50:25 IST 2017

> Build list of files to backup  
> Compress backups

> Backup YunoHost core and apps
> 
> > Make a temporary backup for wordpress\_backup
> > 
> > > This backup is the same than the previous one  
> > > Clean old backup files  
> > > Encrypt backups

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 6, 2017, 7:42pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/19 "2017-12-06T19:42:14Z")

</div>

The error “fuse: mountpoint is not empty” is, as it’s say, because the mountpoint is not empty.  
That happens because you probably run the script too many times, and as you seen after, the error automatically gone.  
That’s because, the mount point is automatically unmount after a fewer minutes unused.

But, even with that error, you should have your backups created, and duplicate.

Do you see anything about rsync after the lines ?  
You should see something about what rsync doing.

---

<div class="post-metadata">

### Author: ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)
#### Post date: [December 6, 2017, 7:48pm UTC](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747/20 "2017-12-06T19:48:05Z")

</div>

> [@Maniack\_Crudelis](#):
>
> Do you see anything about rsync after the lines ?  
> You should see something about what rsync doing.

I don’t see anything after these lines.  
The backup should be there in the data folder of the ssh\_chroot\_dir?

[Next page](https://forum.yunohost.org/t/archivist-backup-your-server-with-rsync/3747.md?page=2)
