You are here

Backup from commandline

4 posts / 0 new
Last post
hirak99
Offline
Last seen: 6 years 12 months ago
Joined: 2011-05-15 13:14
Backup from commandline

Hi,
I have migrated almost fully to using portable apps for most of my software, and I use it in my PC.

I wanted to write a backup script to generate automated periodic backup of the data. Is there any way to use the portable apps platform's backup from the commandline?

-------

I will also be happy with a 7zip script, and I almost got one -
7z.exe a -ms=off -mtc=on -up0q0z1 -r PortableAppsData "D:\Programs\PortableApps\*\*\Data"

Problem is that it also backs up any other data folder that might be present with an application (eg. with Inkscape).

A workaround is to exclude the nested data folders -
7z.exe a -ms=off -mtc=on -up0q0z1 -r PortableAppsData "D:\Programs\PortableApps\*\*\Data" -x!"D:\Programs\PortableApps\*\*\*\Data"

But in this case, it also excludes data folder inside the Data folder (eg. with Stellarium).

I've been tearing my hair on this the whole morning, any solution will be appreciated!

Thanks

solanus
solanus's picture
Offline
Last seen: 7 years 3 months ago
Joined: 2006-01-21 19:12
Have you tried Toucan?

The PortableApps Backup is a pretty simple system, but Toucan (according to the description) includes the ability to create automated backup scripts.
https://portableapps.com/apps/utilities/toucan

I made this half-pony, half-monkey monster to please you.

hirak99
Offline
Last seen: 6 years 12 months ago
Joined: 2011-05-15 13:14
Thanks - downloaded it,

Thanks - downloaded it, though I didn't find an automated way there too which would backup only the data folder of all installed apps.

hirak99
Offline
Last seen: 6 years 12 months ago
Joined: 2011-05-15 13:14
Solution

Ok I solved it.

7z.exe a -ms=off -mtc=on -up0q0z1 -r PortableAppsData -i!"D:\Programs\PortableApps\PortableApps\*\Data" -x!"D:\Programs\PortableApps\PortableApps\*\App"

This works because it excludes the App folder, and so for programs which have a data folder, it will be automatically ignored.

Log in or register to post comments