# What is the best way to restore jobs after OS reinstall?

**URL:** https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317
**Category:** Support
**Created:** [November 17, 2018, 5:23pm UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317 "2018-11-17T17:23:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ivan](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/i/df788c/32.png) [@Ivan](https://forum.duplicati.com/u/Ivan)
#### Post date: [November 17, 2018, 5:23pm UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317/1 "2018-11-17T17:23:41Z")

</div>

Considering that recreating the database is very slow process i was wondering what is the best way to restore jobs after os reinstall? My backup jobs are mostly to google drive.

---

<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: [November 20, 2018, 6:31pm UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317/2 "2018-11-20T18:31:16Z")

</div>

Jobs (and global settings) are not stored in the backups in anyway.  
To bring them from an old OS to a new one would require exporting the job to a file on the old OS then importing from the file on the new one.

Note that I don’t know of any way to carry global settings over like that other than export a job “as command line” then manually copy/paste the global settings into the new OS.

An easier option is to copy over the folder with Duplicati-server.sqlite in it (this should include Duplicati-server.sqlite, dbconfig.json, and any job-specific sqlite files with names like CTAKXYLMWD.sqlite).

If you don’t have either of these available, then you’ll need to manually recreate the job in the GUI, point it to the (already existing) destination and wait for the database recreate to finish. ☹

Note that you can always do a “Direct restore from backup files…” without any job created yet - so in theory you could include your Duplicati-sever.sqlite file then exported job JSON files in your backup and manually restore them to get the jobs back.

It’s not super clean - and we’re hoping to improve on it - but it’s an option.

---

<div class="post-metadata">

### Author: ![frood](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@frood](https://forum.duplicati.com/u/frood)
#### Post date: [December 2, 2018, 7:33pm UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317/3 "2018-12-02T19:33:15Z")

</div>

Is there a way to save a ob to a file via the command line? Duplicati automates my backups, now I want to automate the backup of my backup obs.

---

<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: [December 2, 2018, 10:18pm UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317/4 "2018-12-02T22:18:28Z")

</div>

> [@frood](#):
>
> Is there a way to save a ob to a file via the command line?

[Can I export backup jobs from the command line?](https://forum.duplicati.com/t/can-i-export-backup-jobs-from-the-command-line/5206) suggested a third-party client that talks to Duplicati server which uses both the server and job databases to merge the details needed for jobs to run or to be exported.

[Export backups](https://github.com/Pectojin/duplicati-client#export-backups)

> The export command enables building backup configuration files through the CLI.

[Integration between command line and web interface #2693](https://github.com/duplicati/duplicati/issues/2693#issuecomment-327440337)

> The commandline interface is intentionally separate from the server.

---

<div class="post-metadata">

### Author: ![darkarn](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@darkarn](https://forum.duplicati.com/u/darkarn)
#### Post date: [December 3, 2018, 6:08am UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317/5 "2018-12-03T06:08:06Z")

</div>

> [@JonMikelV](#):
>
> An easier option is to copy over the folder with Duplicati-server.sqlite in it (this should include Duplicati-server.sqlite, dbconfig.json, and any job-specific sqlite files with names like CTAKXYLMWD.sqlite).

Does this mean that job-specific sqlite files have always the same name as indicated in the job itself and therefore I can backup + reuse these as long I point the job to their correct directory?

---

<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: [December 3, 2018, 10:57pm UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317/6 "2018-12-03T22:57:15Z")

</div>

> [@darkarn](#):
>
> Does this mean that job-specific sqlite files have always the same name

No - each job is given a new db name on creation / import. However, you can use the job Database menu to change what database a job points to. Alternatively, you could rename the database file to match where the job is pointing.

---

<div class="post-metadata">

### Author: ![darkarn](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@darkarn](https://forum.duplicati.com/u/darkarn)
#### Post date: [December 4, 2018, 12:13am UTC](https://forum.duplicati.com/t/what-is-the-best-way-to-restore-jobs-after-os-reinstall/5317/7 "2018-12-04T00:13:48Z")

</div>

> [@JonMikelV](#):
>
> Alternatively, you could rename the database file to match where the job is pointing.

In my experience, it seems to give me an error though, I can’t recall the exact steps to reproduce this unfortunately
