# ARM-based Backup Appliance?

**URL:** <https://forum.duplicati.com/t/arm-based-backup-appliance/201>\
**Category:** Installation\
**Created:** [August 23, 2017, 1:45pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201 "2017-08-23T13:45:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [August 23, 2017, 1:45pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/1 "2017-08-23T13:45:40Z")

</div>

Hi all.

I am trying to put together an ARM-based backup appliance using Duplicati. The board in question is an ODroid XU4 which has a 2GHz Exynos CPU (8 cores), 2GB of RAM, Gigabit Ethernet, and USB 3.0. It runs various flavors of Linux including Arch. I have a Drobo FS and a Thecus N7700ro NAS. These will be the targets for Duplicati running on my local machines. Using the appliance, I want to back them up to JottaCloud. Can I install Duplicati on ARM-based Arch?

How much working storage does Duplicati need?

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [August 28, 2017, 6:01pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/2 "2017-08-28T18:01:29Z")

</div>

> [@etrigan63](#):
>
> Can I install Duplicati on ARM-based Arch?

I have tested it on RPI2 and Synology with ARM and it works there. Have not tested with ODroid.

> [@etrigan63](#):
>
> How much working storage does Duplicati need?

It needs a database that stores the hashes of all data blocks, as well as all paths. Rough calculation is 42 bytes pr. block of data (defaults to `--blocksize=100kb`).

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [August 28, 2017, 6:38pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/3 "2017-08-28T18:38:06Z")

</div>

What about the AES files? Where are those held pending transfer to the Cloud? I am attaching a 9TB RAID-5 to the Odroid to house a copy of the data.

My plan is to have the workstations backup to the NAS using a file sync tool (can Duplicati do this?) then have the Odroid back up the NAS to its local array and up to JottaCloud.

I would like the copy on the NAS to be un-encrypted for easy retrieval of individual files. The Odroid would have the encrypted backups as would JottaCloud.

The Drobo FS went to Bit Bucket Heaven so I am harvesting the drives and using them in a USB 3.0 RAID enclosure attached to the Odroid.

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [August 28, 2017, 7:46pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/4 "2017-08-28T19:46:37Z")

</div>

> [@etrigan63](#):
>
> What about the AES files? Where are those held pending transfer to the Cloud?

They are stored in the system temp folder until they can be uploaded. By default there will only be 2 files written in advance.

> [@etrigan63](#):
>
> My plan is to have the workstations backup to the NAS using a file sync tool (can Duplicati do this?)

No, Duplicati does not do sync, only backup.

> [@etrigan63](#):
>
> I would like the copy on the NAS to be un-encrypted for easy retrieval of individual files. The Odroid would have the encrypted backups as would JottaCloud.

Not sure how this is set up, but normally Duplicati is installed on the machine hosting the files. You can work around this by mounting the NAS on the ODroid via SMB or something else, and then backup from the mount point to the disk array.

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [August 28, 2017, 8:00pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/5 "2017-08-28T20:00:15Z")

</div>

The temp files cannot use the system Temp folder on an Odroid because it boots from a microSD card, not a normal hard drive. Can the location of the temp folder be specified? I would rather have it on the locally attached array.

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [August 29, 2017, 6:49am UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/6 "2017-08-29T06:49:16Z")

</div>

> [@etrigan63](#):
>
> Can the location of the temp folder be specified? I would rather have it on the locally attached array.

Yes, best way is to set `TMPDIR` environment variable, as SQLite will use that to place transaction files as well.

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 18, 2017, 9:02pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/8 "2017-09-18T21:02:21Z")

</div>

I have Duplicati starting, but I am getting the following error in the logs:

```
Sep 18 20:56:49 clouddroid mono[297]: Error message: System.TypeInitializationException: The type initializer for 'Mono.Unix.Native.NativeConvert' threw an exception. ---> System.IO.FileNotFoundException: Could not find file "/etc/localtime"
Sep 18 20:56:49 clouddroid mono[297]: at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001d8] in <09e02dbedac243edb3014e35
Sep 18 20:56:49 clouddroid mono[297]: at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <09e02dbedac243edb3014e35f4e0d1ad>:0
Sep 18 20:56:49 clouddroid mono[297]: at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
Sep 18 20:56:49 clouddroid mono[297]: at System.IO.File.OpenRead (System.String path) [0x00000] in <09e02dbedac243edb3014e35f4e0d1ad>:0
Sep 18 20:56:49 clouddroid mono[297]: at System.TimeZoneInfo.FindSystemTimeZoneByFileName (System.String id, System.String filepath) [0x0000e] in <09e02dbedac243edb3014e35f4e0d1ad>:0
Sep 18 20:56:49 clouddroid mono[297]: at System.TimeZoneInfo.CreateLocal () [0x000cc] in <09e02dbedac243edb3014e35f4e0d1ad>:0
Sep 18 20:56:49 clouddroid mono[297]: at System.TimeZoneInfo.get_Local () [0x00009] in <09e02dbedac243edb3014e35f4e0d1ad>:0
Sep 18 20:56:49 clouddroid mono[297]: at System.CurrentSystemTimeZone..ctor () [0x00006] in <09e02dbedac243edb3014e35f4e0d1ad>:0
Sep 18 20:56:49 clouddroid mono[297]: at System.TimeZone.get_CurrentTimeZone () [0x0003c] in <09e02dbedac243edb3014e35f4e0d1ad>:0
Sep 18 20:56:49 clouddroid mono[297]: at Mono.Unix.Native.NativeConvert..cctor () [0x00026] in <dd5b78b86c614c3ab37b4f41920bee3a>:0
Sep 18 20:56:49 clouddroid mono[297]: --- End of inner exception stack trace ---
Sep 18 20:56:49 clouddroid mono[297]: at Mono.Unix.Native.Syscall.lseek (System.Int32 fd, System.Int64 offset, Mono.Unix.Native.SeekFlags whence) [0x00000] in <dd5b78b86c614c3ab37b4f41920bee3a>:0
Sep 18 20:56:49 clouddroid mono[297]: at Mono.Unix.UnixStream..ctor (System.Int32 fileDescriptor, System.Boolean ownsHandle) [0x0003b] in <dd5b78b86c614c3ab37b4f41920bee3a>:0
Sep 18 20:56:49 clouddroid mono[297]: at Mono.Unix.UnixStream..ctor (System.Int32 fileDescriptor) [0x00000] in <dd5b78b86c614c3ab37b4f41920bee3a>:0
Sep 18 20:56:49 clouddroid mono[297]: at (wrapper remoting-invoke-with-check) Mono.Unix.UnixStream:.ctor (int)
Sep 18 20:56:49 clouddroid mono[297]: at UnixSupport.File.OpenExclusive (System.String path, System.IO.FileAccess mode, System.Int32 filemode) [0x0007d] in <3fbec333f978484785726c089e2a43ac>:0
Sep 18 20:56:49 clouddroid mono[297]: at UnixSupport.File.OpenExclusive (System.String path, System.IO.FileAccess mode) [0x00000] in <3fbec333f978484785726c089e2a43ac>:0
Sep 18 20:56:49 clouddroid mono[297]: at Duplicati.Server.SingleInstance..ctor (System.String appname, System.String basefolder) [0x001e5] in <f6ac143bad464e5896e7e3eec4e0f7b9>:0
Sep 18 20:56:49 clouddroid mono[297]: at Duplicati.Server.Program.RealMain (System.String[] args) [0x00242] in <f6ac143bad464e5896e7e3eec4e0f7b9>:0

```

The web interface does not load. Netstat -l returns the following:

```
[guru@clouddroid ~]$ netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:microsoft-ds 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:netbios-ssn 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:llmnr 0.0.0.0:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN
tcp6 0 0 [::]:llmnr [::]:* LISTEN
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN
udp 0 0 localhost:domain 0.0.0.0:*
udp 0 0 192.168.1.25:netbios-ns 0.0.0.0:*
udp 0 0 clouddroid:netbios-ns 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-ns 0.0.0.0:*
udp 0 0 192.168.1.2:netbios-dgm 0.0.0.0:*
udp 0 0 clouddroid:netbios-dgm 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-dgm 0.0.0.0:*
udp 0 0 0.0.0.0:llmnr 0.0.0.0:*
udp6 0 0 [::]:llmnr [::]:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ACC] STREAM LISTENING 15917 /var/run/samba/nmbd/unexpected
unix 2 [ACC] STREAM LISTENING 14410 /run/systemd/private
unix 2 [ACC] SEQPACKET LISTENING 4454 /run/udev/control
unix 2 [ACC] STREAM LISTENING 14449 /run/systemd/journal/stdout
unix 2 [ACC] STREAM LISTENING 15243 /run/user/1001/systemd/private
unix 2 [ACC] STREAM LISTENING 15248 /run/user/1001/bus
unix 2 [ACC] STREAM LISTENING 15250 /run/user/1001/gnupg/S.gpg-agent.extra
unix 2 [ACC] STREAM LISTENING 15253 /run/user/1001/gnupg/S.gpg-agent.ssh
unix 2 [ACC] SEQPACKET LISTENING 14486 /run/systemd/coredump
unix 2 [ACC] STREAM LISTENING 15255 /run/user/1001/gnupg/S.gpg-agent
unix 2 [ACC] STREAM LISTENING 15257 /run/user/1001/gnupg/S.dirmngr
unix 2 [ACC] STREAM LISTENING 15259 /run/user/1001/gnupg/S.gpg-agent.browser
unix 2 [ACC] STREAM LISTENING 15540 /run/dbus/system_bus_socket
unix 2 [ACC] STREAM LISTENING 4576 /run/lvm/lvmetad.socket

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [September 20, 2017, 7:49pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/9 "2017-09-20T19:49:35Z")

</div>

> [@etrigan63](#):
>
> Could not find file “/etc/localtime”

That is a Mono issue:  
[https://bugzilla.xamarin.com/show\_bug.cgi?id=56499](https://bugzilla.xamarin.com/show_bug.cgi?id=56499)

---

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [September 20, 2017, 8:51pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/10 "2017-09-20T20:51:58Z")

</div>

kenkendk, do you know if a standard mono update will fix it yet?

Also, would it be useful to include mono information in the About page since it seems there are some issues with certain versions?

Edit:  
Never mind - I’m just lazy and/or blind…it’s already in the “About -\> System Info” page.

```
System properties

APIVersion : 1
PasswordPlaceholder : **********
ServerVersion : 2.0.2.1
ServerVersionName : - 2.0.2.1_beta_2017-08-01
ServerVersionType : Beta
BaseVersionName : 2.0.2.1_beta_2017-08-01
DefaultUpdateChannel : Beta
DefaultUsageReportLevel : Information
ServerTime : 2017-09-21T13:40:55.2060941-05:00
OSType : Windows
DirectorySeparator : \
PathSeparator : ;
CaseSensitiveFilesystem : false
MonoVersion : <------ HERE (blank for windows)

```

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 20, 2017, 9:02pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/11 "2017-09-20T21:02:11Z")

</div>

Here’s a workaround:

Install tzdata (sudo pacman -S tzdata)  
Edit the symlink /etc/localtime and have it point to the actual filename set up by tzdata. (Mine said “New York” when it should have been “New\_York”.  
Restart Duplicati and you should be golden.

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 20, 2017, 9:14pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/13 "2017-09-20T21:14:12Z")

</div>

> [@kenkendk](#):
>
> Yes, best way is to set TMPDIR environment variable, as SQLite will use that to place transaction files as well.

How do I set that? I edited /etc/environment and it is still writing to /tmp.

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [September 20, 2017, 9:15pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/14 "2017-09-20T21:15:51Z")

</div>

I would guess something like this works:

```bash
export TMPDIR=/mytemp
duplicati-server &

```

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 20, 2017, 9:53pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/15 "2017-09-20T21:53:14Z")

</div>

Well I added the export to /etc/profile and it made no difference. I will ask in the Arch subreddit and see if I get an answer.

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 20, 2017, 9:56pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/16 "2017-09-20T21:56:20Z")

</div>

I did a printenv and both TMPDIR and DUPLICATI\_DATA\_FOLDER are there and being ignored.

---

<div class="post-metadata">

**Author:** ![dgcom](https://forum.duplicati.com/user_avatar/forum.duplicati.com/dgcom/32/2711_2.png) [@dgcom](https://forum.duplicati.com/u/dgcom)\
**Post date:** [September 20, 2017, 10:51pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/17 "2017-09-20T22:51:52Z")

</div>

Can you try TMP environment variable?  
I found that on Windows this is the only one working, although I saw code going through all three of them (incl. TEMP).

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 21, 2017, 1:08am UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/18 "2017-09-21T01:08:19Z")

</div>

Here is the output of my `printenv` command:

`[guru@clouddroid temp]$ printenv`  
`SSH_CONNECTION=192.168.1.147 61973 192.168.1.98 22`  
`LANG=C`  
`TZ=/usr/share/zoneinfo/America/New_York`  
`XDG_SESSION_ID=c1`  
`USER=guru`  
`PWD=/media/raid/temp`  
`HOME=/home/guru`  
`TMP=/media/raid/temp`  
`SSH_CLIENT=192.168.1.147 61973 22`  
`DUPLICATI_DATA_FOLDER=/media/raid/databases`  
`TMPDIR=/media/raid/temp/`  
`SSH_TTY=/dev/pts/0`  
`MAIL=/var/spool/mail/guru`  
`TERM=xterm`  
`SHELL=/bin/bash`  
`SHLVL=1`  
`LOGNAME=guru`  
`DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus`  
`XDG_RUNTIME_DIR=/run/user/1001`  
`PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl _=/usr/bin/printenv`  
`OLDPWD=/home/guru`  
`[guru@clouddroid temp]$`

Duplicati is ignoring it and writing `/tmp`

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [September 21, 2017, 9:20am UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/19 "2017-09-21T09:20:27Z")

</div>

> [@etrigan63](#):
>
> I did a printenv and both TMPDIR and DUPLICATI\_DATA\_FOLDER are there and being ignored.

Are both being ignored? In that case I think it has something to do with the process starting with _another_ environment (maybe already running in ano. You can run:

```plaintext
duplicati-cli help --tempdir

```

It shows the “default value” for the option, which is the temporary folder. If you have `TMPDIR` set, it should show the right value.

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 21, 2017, 3:17pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/20 "2017-09-21T15:17:34Z")

</div>

OK, I got the temp files writing to the directory I wanted by adding this to the `systemd/system/duplicati.service` file:

`[Service]`  
`Environment=TMPDIR=/media/raid/temp`

Now the temp files are written to the RAID array instead of the SD card. The sqllite files are still written to the default location `/root/.config/Duplicati-server.sqlite`

How do I move those?

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [September 23, 2017, 9:42pm UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/21 "2017-09-23T21:42:15Z")

</div>

> [@etrigan63](#):
>
> Now the temp files are written to the RAID array instead of the SD card. The sqllite files are still written to the default location /root/.config/Duplicati-server.sqlite
> 
> How do I move those?

You can set the environment variable `Duplicati_HOME` to point to the folder you want to use.

I assume you can set it like this (unsure of the syntax though):

```plaintext
[Service]
Environment=TMPDIR=/media/raid/temp:Duplicati_HOME=/media/raid/duplicati_storage

```

---

<div class="post-metadata">

**Author:** ![etrigan63](https://forum.duplicati.com/user_avatar/forum.duplicati.com/etrigan63/32/101_2.png) [@etrigan63](https://forum.duplicati.com/u/etrigan63)\
**Post date:** [September 24, 2017, 1:06am UTC](https://forum.duplicati.com/t/arm-based-backup-appliance/201/22 "2017-09-24T01:06:28Z")

</div>

It’s on multiple `Environment` entries, but yes, that is how I got it to work. Thanks for all of your help.
