<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Create a backup</title><link>https://sourceforge.net/p/fusebackup/wiki/Create%2520a%2520backup/</link><description>Recent changes to Create a backup</description><atom:link href="https://sourceforge.net/p/fusebackup/wiki/Create%20a%20backup/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 23 Nov 2015 12:28:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/fusebackup/wiki/Create%20a%20backup/feed" rel="self" type="application/rss+xml"/><item><title>Create a backup modified by Stef Bon</title><link>https://sourceforge.net/p/fusebackup/wiki/Create%2520a%2520backup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -38,12 +38,7 @@
 $&amp;gt; cd /srv/backupbtrfs/mount/.system/backup
 $&amp;gt; ls -al

-gives the uidnr's of the users currently logged in, one of those is probably you. If you do not know your uidnr, get it via id. For me it gives:
-
-$&amp;gt; id
-uid=1000(sbon) gid=100(users) groups=100(users),995(backupbtrfs)
-
-In my case the directory 1000 is created. For you this is probably a different value. cd into that:
+gives the uidnr's of the users currently logged in, one of those is probably you. In my case that is 1000. For you this is probably a different value. cd into that:

 $&amp;gt; cd 1000
 $&amp;gt; ls -al
@@ -52,9 +47,11 @@

 $&amp;gt; mkdir 6

-will enable backups for the target directory Project/MyNewCProgram. A subvolume is created:
+will enable backups for the target directory Project/MyNewCProgram.

 **Testing a subvolume is created**
+
+A subvolume is created:

 (as root, normal users do not have access:)

@@ -111,5 +108,3 @@
 -rw-r--r--1 sbon users 3516 Jul 17 08:53 201507271136

 The file 201507271136 is a copy of the file main.c in /home/sbon/Project/MyNewCProgram, and you can access that. The permissions and owenrship are of those at the moment the snapshot is created.
-
-
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stef Bon</dc:creator><pubDate>Mon, 23 Nov 2015 12:28:25 -0000</pubDate><guid>https://sourceforge.net3d7573387ba96ccfa0a3ca38f95d5dacc826486e</guid></item><item><title>Create a backup modified by Stef Bon</title><link>https://sourceforge.net/p/fusebackup/wiki/Create%2520a%2520backup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -38,18 +38,17 @@
 $&amp;gt; cd /srv/backupbtrfs/mount/.system/backup
 $&amp;gt; ls -al

-gives the uidnr's of the users currently logged in, one of thos is probably you. If you do not know your uidnr, get it via id. For me it gives:
+gives the uidnr's of the users currently logged in, one of those is probably you. If you do not know your uidnr, get it via id. For me it gives:

 $&amp;gt; id
 uid=1000(sbon) gid=100(users) groups=100(users),995(backupbtrfs)

-In my case the directory 1000 is created. For you this is probably a different value. Change into that:
+In my case the directory 1000 is created. For you this is probably a different value. cd into that:

 $&amp;gt; cd 1000
 $&amp;gt; ls -al

-will give you probably nothing, since you've not created a backup yet. Every backup you've created a item should exist here.
-Create the db_id directory here with the value you got earlier via the getfattr call:
+will give you probably nothing, since you've not created a backup yet. Every backup you've created a item should exist here. Create the db_id directory here with the value you got earlier via the getfattr call:

 $&amp;gt; mkdir 6

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stef Bon</dc:creator><pubDate>Mon, 23 Nov 2015 12:15:27 -0000</pubDate><guid>https://sourceforge.net03f879982aa49bb9b726c77a108b9c38e58cc27d</guid></item><item><title>Create a backup modified by Stef Bon</title><link>https://sourceforge.net/p/fusebackup/wiki/Create%2520a%2520backup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,4 +1,6 @@
-After insttalation and the service fuse-backup is started, now you can add a directory to backup:
+After installation and the service fuse-backup is started, now you can add a directory to backup:
+
+**Creating the directory in fuse-backup**

 (as normal user)

@@ -21,11 +23,15 @@

 The fuse fs lets you create this directories here when you have read access to these directories, which is the case for directories in your home directory, which you own.

+**Get the unique id for the directory**
+
 Now get the unique identifier db_id for this directory:

 $&amp;gt; getfattr --name='system.db_id' --encoding=text MyNewCProgram
 file: MyNewCProgram
 system.db_id="6"
+
+**Add this unique id in your system backups**

 This number is an example, in your case this is probably different.Change to the system directory where you can manage your backups:

@@ -49,6 +55,8 @@

 will enable backups for the target directory Project/MyNewCProgram. A subvolume is created:

+**Testing a subvolume is created**
+
 (as root, normal users do not have access:)

 $&amp;gt; ls -al /srv/backupbtrfs/backup
@@ -62,6 +70,8 @@
 $&amp;gt; ls -al /srv/backupbtrfs/backup/1000/1
 will give you the backup directory, and a symbolic link to the target.

+**Adding mimetypes**
+
 Back to the directory 6 which you've just created. At this moment the backup is enabled for the target directory, but it will not do anything. First create the rules for this backup. When creating this directory, fuse-backup has scanned the target directory for mimetypes, and created those in the system mimetype directory. For every rule create a symlink like:

 $&amp;gt; cd 6
@@ -73,6 +83,8 @@
 cause we're dealing with a directory for C-development. You only want to backup headers, sources and probably the README.
 The default behaviour of fuse-backup is to populate the backup and create the first snapshot after the first next login. You can force doing that now by creating an entry in the system queue directory:

+**Start the backup now**
+
 $&amp;gt; cd /srv/backupbtrfs/mount/.system/queue
 $&amp;gt; mkdir 6

@@ -83,7 +95,7 @@

 will give you entries for everything being backupped and versioned at this moment. Every file which is selected for the backup in the target is presented as a directory here. This is because this way it's easy to browse every version: versions are entries "in" the file directory.

-So for example the contentsmay look like:
+So for example the contents may look like:

 total 2
 drwxr-xr-x 2 sbon users 4096 Jul 27 01:08 .
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stef Bon</dc:creator><pubDate>Mon, 23 Nov 2015 12:13:50 -0000</pubDate><guid>https://sourceforge.net52371b64b61dd3d7794a4986e1122eb166a6d24b</guid></item><item><title>Create a backup modified by Stef Bon</title><link>https://sourceforge.net/p/fusebackup/wiki/Create%2520a%2520backup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -24,7 +24,7 @@
 Now get the unique identifier db_id for this directory:

 $&amp;gt; getfattr --name='system.db_id' --encoding=text MyNewCProgram
-#file: MyNewCProgram
+file: MyNewCProgram
 system.db_id="6"

 This number is an example, in your case this is probably different.Change to the system directory where you can manage your backups:
@@ -36,3 +36,69 @@

 $&amp;gt; id
 uid=1000(sbon) gid=100(users) groups=100(users),995(backupbtrfs)
+
+In my case the directory 1000 is created. For you this is probably a different value. Change into that:
+
+$&amp;gt; cd 1000
+$&amp;gt; ls -al
+
+will give you probably nothing, since you've not created a backup yet. Every backup you've created a item should exist here.
+Create the db_id directory here with the value you got earlier via the getfattr call:
+
+$&amp;gt; mkdir 6
+
+will enable backups for the target directory Project/MyNewCProgram. A subvolume is created:
+
+(as root, normal users do not have access:)
+
+$&amp;gt; ls -al /srv/backupbtrfs/backup
+
+You'll see a list of users currently having backups, using the uidnr again. One of those is yours. I take my uidnr (1000):
+
+$&amp;gt; ls -al /srv/backupbtrfs/backup/1000
+
+This will list all your backups, using an unique number. One of those has just been created. It's probably 1 or 0. Suppose it's 1:
+
+$&amp;gt; ls -al /srv/backupbtrfs/backup/1000/1
+will give you the backup directory, and a symbolic link to the target.
+
+Back to the directory 6 which you've just created. At this moment the backup is enabled for the target directory, but it will not do anything. First create the rules for this backup. When creating this directory, fuse-backup has scanned the target directory for mimetypes, and created those in the system mimetype directory. For every rule create a symlink like:
+
+$&amp;gt; cd 6
+$&amp;gt; ln -sf ../../../mimetype/text/x-chdr include.mimetype.chdr
+$&amp;gt; ln -sf ../../../mimetype/text/x-readme include.mimetype.readme
+$&amp;gt; ln -sf ../../../mimetype/text/x-c++src include.mimetype.c++src
+$&amp;gt; ln -sf ../../../mimetype/text/x-csrc include.mimetype.csrc
+
+cause we're dealing with a directory for C-development. You only want to backup headers, sources and probably the README.
+The default behaviour of fuse-backup is to populate the backup and create the first snapshot after the first next login. You can force doing that now by creating an entry in the system queue directory:
+
+$&amp;gt; cd /srv/backupbtrfs/mount/.system/queue
+$&amp;gt; mkdir 6
+
+Now take a look at the target (in the FUSE fs):
+
+$&amp;gt; cd /srv/backupbtrfs/mount/home/sbon/Project/MyNewCProgram
+$&amp;gt; ls -al
+
+will give you entries for everything being backupped and versioned at this moment. Every file which is selected for the backup in the target is presented as a directory here. This is because this way it's easy to browse every version: versions are entries "in" the file directory.
+
+So for example the contentsmay look like:
+
+total 2
+drwxr-xr-x 2 sbon users 4096 Jul 27 01:08 .
+drwxr-xr-x 2 sbon users 4096 Jun 26 10:36 ..
+drwxr-xr-x 2 sbon users    1 Aug  6 11:35 main.c
+drwxr-xr-x 2 sbon users    1 Aug  6 11:36 main.h
+
+Now the directory main.c has size 1, which means there is one version, which is of course the first snapshot, we've just created. Change into this directory:
+
+$&amp;gt; ls -al
+total 1
+drwxr-xr-x 2 sbon users    1 Aug  6 11:35 .
+drwxr-xr-x 2 sbon users 4096 Jul 27 01:08 ..
+-rw-r--r--1 sbon users 3516 Jul 17 08:53 201507271136
+
+The file 201507271136 is a copy of the file main.c in /home/sbon/Project/MyNewCProgram, and you can access that. The permissions and owenrship are of those at the moment the snapshot is created.
+
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stef Bon</dc:creator><pubDate>Thu, 06 Aug 2015 09:44:37 -0000</pubDate><guid>https://sourceforge.netb1eacccdb23215d20528345168b66d6a6836c849</guid></item><item><title>Create a backup modified by Stef Bon</title><link>https://sourceforge.net/p/fusebackup/wiki/Create%2520a%2520backup/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;After insttalation and the service fuse-backup is started, now you can add a directory to backup:&lt;/p&gt;
&lt;p&gt;(as normal user)&lt;/p&gt;
&lt;p&gt;$&amp;gt; cd /srv/backupbtrfs/mount&lt;/p&gt;
&lt;p&gt;You will see that your homedirectory is created. Access that:&lt;br/&gt;
(for me as user sbon that is:)&lt;/p&gt;
&lt;p&gt;$&amp;gt; cd home/sbon&lt;/p&gt;
&lt;p&gt;For you that is of course different.&lt;/p&gt;
&lt;p&gt;Now you can create a directory here which is also in your homedirectory, as a mirror.&lt;br/&gt;
Suppose you have the directory Project/MyNewCProgram, which contains the sources of a C program you're working on.&lt;br/&gt;
Create this as follows:&lt;/p&gt;
&lt;p&gt;$&amp;gt; mkdir Project&lt;br/&gt;
$&amp;gt; cd Project&lt;br/&gt;
$&amp;gt; mkdir MyNewCProgram&lt;/p&gt;
&lt;p&gt;The fuse fs lets you create this directories here when you have read access to these directories, which is the case for directories in your home directory, which you own.&lt;/p&gt;
&lt;p&gt;Now get the unique identifier db_id for this directory:&lt;/p&gt;
&lt;p&gt;$&amp;gt; getfattr --name='system.db_id' --encoding=text MyNewCProgram&lt;/p&gt;
&lt;h1 id="file-mynewcprogram"&gt;file: MyNewCProgram&lt;/h1&gt;
&lt;p&gt;system.db_id="6"&lt;/p&gt;
&lt;p&gt;This number is an example, in your case this is probably different.Change to the system directory where you can manage your backups:&lt;/p&gt;
&lt;p&gt;$&amp;gt; cd /srv/backupbtrfs/mount/.system/backup&lt;br/&gt;
$&amp;gt; ls -al&lt;/p&gt;
&lt;p&gt;gives the uidnr's of the users currently logged in, one of thos is probably you. If you do not know your uidnr, get it via id. For me it gives:&lt;/p&gt;
&lt;p&gt;$&amp;gt; id&lt;br/&gt;
uid=1000(sbon) gid=100(users) groups=100(users),995(backupbtrfs)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stef Bon</dc:creator><pubDate>Thu, 06 Aug 2015 08:50:35 -0000</pubDate><guid>https://sourceforge.netbd3e50f8db1edf78dd80b0ee0dd15ad6d4f68bf3</guid></item></channel></rss>