# Use Duplicati on Raspberry Pi to backup a local NAS to cloud

**URL:** <https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001>\
**Category:** How-To\
**Created:** [November 13, 2023, 2:04pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001 "2023-11-13T14:04:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![espeka44](https://forum.duplicati.com/user_avatar/forum.duplicati.com/espeka44/32/8625_2.png) [@espeka44](https://forum.duplicati.com/u/espeka44)\
**Post date:** [November 13, 2023, 2:04pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/1 "2023-11-13T14:04:40Z")

</div>

Hello all.  
My goal is to use my Raspberry Pi to backup a folder from my NAS (local network) to Google Drive (cloud).  
Previously I managed to run a backup task with Duplicati which was running on my PC (Windows 11) to my GDrive and it works.  
However, now I would like this task to be done by my RPi which runs 24/24 7/7. I exported the configuration file from Duplicati PC version to Duplication Debian version on my RPi.  
Executing the task does not work because it tells me that the absolute path \NASlocalIP\MyFolder is not found. Like my RPI can’t browse my local network.  
I’m lost.

---

<div class="post-metadata">

**Author:** ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)\
**Post date:** [November 13, 2023, 2:17pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/2 "2023-11-13T14:17:29Z")

</div>

> [@espeka44](#):
>
> the absolute path \NASlocalIP\MyFolder is not found.

is it really

```plaintext
\NASlocalIP 

```

or

```plaintext
 \\NASlocalIP ?

```

> [@espeka44](#):
>
> Like my RPI can’t browse my local network.

well, can it do so ? from the command line, outside of Duplicati ?

---

<div class="post-metadata">

**Author:** ![Jojo-1000](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jojo-1000/32/8262_2.png) [@Jojo-1000](https://forum.duplicati.com/u/Jojo-1000)\
**Post date:** [November 13, 2023, 2:28pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/3 "2023-11-13T14:28:01Z")

</div>

> [@espeka44](#):
>
> I exported the configuration file from Duplicati PC version to Duplication Debian version on my RPi.  
> Executing the task does not work because it tells me that the absolute path \NASlocalIP\MyFolder is not found.

Windows and Linux paths are not compatible. Windows has the convenience of network paths, but Duplicati does not support this on linux. You need to mount the NAS to a path on the raspberry (there are probably tutorials about that), and then edit the backup source to that new path. You also need to create a new target folder as well, because the existing files will not be known to the raspberry backup.

---

<div class="post-metadata">

**Author:** ![espeka44](https://forum.duplicati.com/user_avatar/forum.duplicati.com/espeka44/32/8625_2.png) [@espeka44](https://forum.duplicati.com/u/espeka44)\
**Post date:** [November 13, 2023, 2:31pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/4 "2023-11-13T14:31:48Z")

</div>

I all try, even \NASlocalIP or //NASlocalIP.

Yes i can browse on my local NAS through SMBClient

> smbclient //NASlocalIP/MyForder

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [November 13, 2023, 3:02pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/5 "2023-11-13T15:02:12Z")

</div>

> [@espeka44](#):
>
> Yes i can browse on my local NAS through SMBClient

You are using SMB software. Duplicati has no SMB built in. It uses the operating system for SMB. Windows does that using the double backslash prefix, and beyond that it’s a file. Not so for Linux.  
Some application programs might support a similar syntax, but you can use a [mount](https://linux.die.net/man/8/mount) for Duplicati.

Linux is not Windows.

[smbclient(1) - Linux man page](https://linux.die.net/man/1/smbclient)

> smbclient - ftp-like client to access SMB/CIFS resources on servers

> This tool is part of the **[samba](https://linux.die.net/man/7/samba)**(7) suite.

[samba(7) - Linux man page](https://linux.die.net/man/7/samba)

> The Samba software suite is a collection of programs that implements the Server Message Block (commonly abbreviated as SMB) protocol for UNIX systems.

For your path not found problem, can you, without help from Samba, just `ls` it from a shell prompt?  
If it can’t be reached without doing SMB mount, then the same applies to Duplicati and many more.

You have other problems in store too. You can probably edit the export to change the paths around.  
Point them to wherever you decided to mount the NAS. That’s probably good enough for new start. Continuing with previous backup is harder, as the backup itself has paths – all done Windows-style.  
This can be probably be solved, but it’s pretty technical.

---

<div class="post-metadata">

**Author:** ![espeka44](https://forum.duplicati.com/user_avatar/forum.duplicati.com/espeka44/32/8625_2.png) [@espeka44](https://forum.duplicati.com/u/espeka44)\
**Post date:** [November 13, 2023, 3:14pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/6 "2023-11-13T15:14:21Z")

</div>

Thanks @Jojo-1000 and @ts678. I’m starting understanding…  
I will try to add my folder on my NAS as a mounted shared disk on my RPi and reconfig my Duplicati task.  
I will keep in touch and give my feedback if i solve this path problem.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [November 13, 2023, 4:04pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/7 "2023-11-13T16:04:41Z")

</div>

> [@espeka44](#):
>
> reconfig my Duplicati task.

If you have a simple source config, it’s probably easiest just to select Linux paths similar to Windows.  
Editing the export is pretty easy unless it’s encrypted, but is probably only worth it for complex config.  
As mentioned, reusing the old backup data is sort of tricky, but there are a couple of approaches to it.

EDIT:

Starting fresh avoids having to fight more, and if space allows, you can keep the Windows backup too.  
Cross-OS restores are allowed (with some conditions, as location moved). Cross-OS backups are not.

---

<div class="post-metadata">

**Author:** ![espeka44](https://forum.duplicati.com/user_avatar/forum.duplicati.com/espeka44/32/8625_2.png) [@espeka44](https://forum.duplicati.com/u/espeka44)\
**Post date:** [December 22, 2023, 1:03pm UTC](https://forum.duplicati.com/t/use-duplicati-on-raspberry-pi-to-backup-a-local-nas-to-cloud/17001/8 "2023-12-22T13:03:30Z")

</div>

I succeeded !  
I mount my NAS as a virtual directory of my Raspberry Pi.  
I followed theses indications here : [Mount an SMB Share in Linux | Linode Docs](https://www.linode.com/docs/guides/linux-mount-smb-share/)  
Don’t forget to force auto-mount at the boot by editing file /etc/fstab.

It has been working perfectly for 1 month now.
