# Possible to clone an existing backup

**URL:** <https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455>\
**Category:** How-To\
**Created:** [April 1, 2025, 1:01am UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455 "2025-04-01T01:01:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jberry02](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/f19dbf/32.png) [@jberry02](https://forum.duplicati.com/u/jberry02)\
**Post date:** [April 1, 2025, 1:01am UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/1 "2025-04-01T01:01:12Z")

</div>

After some recent issues, I would like to take an existing backup and split it into 2 or more smaller backups while retaining the history.

Is it possible to to do the following?

1. disable schedule so we don’t run any backups
2. clone/copy b2 bucket
3. export backup config
4. import backup config

- change name
- change destination to cloned b2 bucket

1. copy local db for exported backup to name used by imported backup
2. delete files as desired from the split backups
3. compact the split backups
4. vacuum the local dbs?
5. enable schedules

---

<div class="post-metadata">

**Author:** ![drakar2007](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drakar2007/32/230_2.png) [@drakar2007](https://forum.duplicati.com/u/drakar2007)\
**Post date:** [April 1, 2025, 2:44am UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/2 "2025-04-01T02:44:00Z")

</div>

> [@jberry02](#):
>
> disable schedule so we don’t run any backups

“pause” and selecting “until resumed” should do this

---

<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:** [April 1, 2025, 11:54am UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/3 "2025-04-01T11:54:25Z")

</div>

Pause also pauses other needed stops. For example, a Commandline `purge`:

## Running commandline entry

Server is currently paused, resume now

Commandline `vacuum` gets the same. GUI `Compact now` seems to just queue.

Another reason why disabling the schedule is safer is I don’t think anything but Canary remembers the pause across Duplicati restarts which might be wanted.

> [@jberry02](#):
>
> delete files as desired from the split backups

I assume `delete` means carefully use the `purge` command. Delete from source configuration means future backups will be less, but historical ones don’t change.

---

<div class="post-metadata">

**Author:** ![jberry02](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/f19dbf/32.png) [@jberry02](https://forum.duplicati.com/u/jberry02)\
**Post date:** [April 1, 2025, 12:52pm UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/4 "2025-04-01T12:52:19Z")

</div>

> [@ts678](#):
>
> > [@jberry02](#):
> >
> > delete files as desired from the split backups
> 
> I assume `delete` means carefully use the `purge` command. Delete from source configuration means future backups will be less, but historical ones don’t change.

“delete” means carfeully deleting individual files and directory trees from the filesets. I was thinking I could use the “delete” command to do this as opposed to using “purge” and then having to do a “compact”, but perhaps I am misremembering. “purge” is probably better anyway in this case since I intend to do a “compact” at the end anyway.

---

<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:** [April 1, 2025, 1:38pm UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/5 "2025-04-01T13:38:06Z")

</div>

> [@jberry02](#):
>
> I was thinking I could use the “delete” command

[The DELETE command](https://docs.duplicati.com/community-docs/community-docs-using-duplicati-from-the-commandline#the-delete-command) deletes versions.

[The PURGE command](https://docs.duplicati.com/community-docs/community-docs-using-duplicati-from-the-commandline#the-purge-command) does files/folders (with some control on which versions).

---

<div class="post-metadata">

**Author:** ![jberry02](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/f19dbf/32.png) [@jberry02](https://forum.duplicati.com/u/jberry02)\
**Post date:** [April 1, 2025, 1:55pm UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/6 "2025-04-01T13:55:12Z")

</div>

Thank you for the clarification! I have rarely had need of the “purge” command so obviously was mis-remembering.

---

<div class="post-metadata">

**Author:** ![jberry02](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/f19dbf/32.png) [@jberry02](https://forum.duplicati.com/u/jberry02)\
**Post date:** [April 24, 2025, 10:29pm UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/7 "2025-04-24T22:29:47Z")

</div>

Here is the process I ended up using.

Notes

- I am primarily Linux-based, so this process is Linux-centric.
- My backups run as system services, not user-level.

This process assumes you know how to run Duplicati commands, either using the GUI or with Duplicati-cli - if you don’t know how to do this, you probably should not attempt this process!

1. Create a “rclone” remote for the relevant b2 bucket.
2. Use “rclone” to copy the desired backup from the current folder to a new folder. Note that this assumes the backup uses a folder within the bucket rather than just using “/”. If you are using “/”, you probably want to just create a new bucket.
3. Create a new backup. This can be done by using the GUI and filling out the individual fields, or by exporting the current backup to a file and then importing it and updating the fields as needed. Set the new backup to _only_ backup the directory/ies of interest.
4. Note the local database name from the original backup and the new backup - copy the database to the new name.
5. With the new backup use “list” and “list-broken-files” to confirm everything looks OK. Then use “purge” to eliminate everything _except_ the desired directory/ies. Note that you need to add the “\*” wildcard to directory paths.
6. If everything is still OK, run the new backup.
7. If the new backup is OK update the original backup to exclude the directory/ies that are now being backed-up by the new backup.
8. With the original backup use the “purge” command to remove the directory/ies that are now being backed-up by the new backup.
9. Run the original backup to confirm it is OK.

I also did a “vacuum” against the databases after the “purge” commands, but I don’t know how helpful this was.

For Windows, there are 2 additional issues:

- you need a Windows version of rclone (If it exists) or some other method to copy the data on the cloud service. In my case I just used rclone from a Linux system.
- to copy the local database you need to run commands as the local system user, and this requires a tool such as “psexec”. You could also just let Duplicate recreate the local database if you can tolerate the downloads and the time it takes.

---

<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:** [April 26, 2025, 6:42pm UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/8 "2025-04-26T18:42:18Z")

</div>

Thanks for the note! One Windows point I’m not sure I agree with is the following one:

> [@jberry02](#):
>
> to copy the local database you need to run commands as the local system user, and this requires a tool such as “psexec”.

For Duplicati run as a regular user, the user themselves would have access.  
For a Windows service run as SYSTEM, ordinary elevated admin should do.

```plaintext
C:\Windows\System32\config\systemprofile\AppData\Local\Duplicati NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                                                                 BUILTIN\Administrators:(I)(OI)(CI)(F)

```

---

<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:** [May 1, 2025, 7:17am UTC](https://forum.duplicati.com/t/possible-to-clone-an-existing-backup/20455/9 "2025-05-01T07:17:24Z")

</div>

> [@jberry02](#):
>
> Create a “rclone” remote for the relevant b2 bucket.

If you are using the canary builds, there is now a `Duplicati.CommandLine.SyncTool.exe` / `duplicati-sync-tool` bundled that is designed to copy Duplicati files from one destination to another.

It is by no means as flexible as `rclone`, but it does accept the same connection strings as Duplicati uses, so you do not need to set up rclone.
