Help with BACKUP on zynthian-stable

Hi all,

before upgrading my “stage” Zynthian v4 to oram, I tried to get a backup. config backup runs without problems but all backup does not. The browser does something for many minutes and then that’s it. No question about saving - nothing…

This is my current hardware/software setup:

Has anyone an idea?

… or: If webconf (for whatever reason) cannot create the backup: I can also create it from the command line using tar. Which paths have to be included in the tar archive?

Ok, read the source and found:

for config backup:

/zynthian/config
/root/.config/Modartt
Filename zynthian_data_backup%Y%m%d-%H%M%S.backup

… and for data backup:

/zynthian/zynthian-my-data
/root/.local/share/Modartt
Filename: zynthian_config_backup%Y%m%d-%H%M%S.backup

And for all backup all four directories.
Filename: zynthian_backup%Y%m%d-%H%M%S.backup

Replace %Y%m%d-%H%M%S with date/time and use zip for building the archive. This one-liner should do it inside bash:

apt install --yes zip
zip -r -9 zynthian_backup$(date +%Y%m%d-%H%M%S).backup /zynthian/config /root/.config/Modartt/zynthian/zynthian-my-data /root/.local/share/Modartt

Will try this soon…

[EDIT]
Made some fixes to backup instructions

1 Like

When it’s failed for me it’s generally because of the size of the audio samples I have. IT simply doesn’t complete before the webconf times out.

Yes, that was my first idea too. But I don’t have any large sample files on this system. I have now made the backup via ssh. It’s really tiny… strange. Let’s see if I can import it into oram: No. :frowning:

The size of the partition that /tmp is on used to be very small (100MB I think) which really limited a lot of operations that used temporary storage here. This is improved in Oram. So, although you may not have large files, it doesn’t take much to exceed this limit.

I’ve run into the /tmp file limitations but the backup and restore has generally worked for me. I start by backing up the data and this generally works. I don’t regard myself as typical as I have some very large audio files on my zynths.

Backup should really be more of a strategy than a single file, but you do need to get the file stuff reliable first.