# migrate to new server using backup and restore?

**URL:** <https://community.ciphermail.com/t/migrate-to-new-server-using-backup-and-restore/457>\
**Category:** Gateway\
**Created:** [September 4, 2015, 2:50pm UTC](https://community.ciphermail.com/t/migrate-to-new-server-using-backup-and-restore/457 "2015-09-04T14:50:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harald\_Dunkel](https://avatars.discourse-cdn.com/v4/letter/h/898d66/32.png) [@Harald\_Dunkel](https://community.ciphermail.com/u/Harald_Dunkel)\
**Post date:** [September 4, 2015, 2:50pm UTC](https://community.ciphermail.com/t/migrate-to-new-server-using-backup-and-restore/457/1 "2015-09-04T14:50:47Z")

</div>

Hi folks,

To migrate to a new server (Debian 8) I have tried to import  
a backup (made on djigzo 2.4.0-3) into djigzo 2.10.0-3. Error  
message:

Restore failed. Message: WebServiceCheckedException: IOException: /usr/share/djigzo/scripts/scripts.d/backup.sh: line 339: service: command not found

AFAICS this is about restarting the database. As a workaround  
I had to create a temporary symlink:

ln -s /usr/sbin/service /usr/bin

Now I am a little bit concerned about other tools not  
searched in /usr/sbin.

Hope this helps. Regards  
Harri

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [September 7, 2015, 8:01am UTC](https://community.ciphermail.com/t/migrate-to-new-server-using-backup-and-restore/457/2 "2015-09-07T08:01:35Z")

</div>

I have added /usr/sbin to the PATH of the backup.sh script:

PATH='/bin:/usr/bin:/sbin:/usr/sbin'

This will be included when a new version is released.

It looks like all other scripts are working correctly on Debian Jessie

Kind regards,

Martijn Brinkers

> **···**
>
> On 09/04/2015 04:50 PM, Harald Dunkel wrote:
> 
> > Hi folks,
> > 
> > To migrate to a new server (Debian 8) I have tried to import a backup  
> > (made on djigzo 2.4.0-3) into djigzo 2.10.0-3. Error message:
> > 
> > Restore failed. Message: WebServiceCheckedException: IOException:  
> > /usr/share/djigzo/scripts/scripts.d/backup.sh: line 339: service:  
> > command not found
> > 
> > AFAICS this is about restarting the database. As a workaround I had  
> > to create a temporary symlink:
> > 
> > ln -s /usr/sbin/service /usr/bin
> > 
> > Now I am a little bit concerned about other tools not searched in  
> > /usr/sbin.
> 
> --  
> CipherMail email encryption
> 
> Open source email encryption gateway with support for S/MIME, OpenPGP  
> and PDF messaging.
> 
> > **[CipherMail email encryption and digital signatures](https://www.ciphermail.com)**
> >
> > Easy to use server-side email encryption for automatic encryption and digital signing of email.
> 
> Twitter: [http://twitter.com/CipherMail](http://twitter.com/CipherMail)
> 
> --  
> CipherMail email encryption
> 
> Open source email encryption gateway with support for S/MIME, OpenPGP  
> and PDF messaging.
> 
> > **[CipherMail email encryption and digital signatures](https://www.ciphermail.com)**
> >
> > Easy to use server-side email encryption for automatic encryption and digital signing of email.
> 
> Twitter: [http://twitter.com/CipherMail](http://twitter.com/CipherMail)
