back up scripts

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: MattKingUSA, khz

Post Reply
hu_xue
Established Member
Posts: 3
Joined: Tue Sep 23, 2014 5:59 am

back up scripts

Post by hu_xue »

Hi

Not sure this is a KX Studio specific question per se, but here goes.

I wanna create a script that is triggered when an application starts which backs-up a particular directory and another script that triggers whenever the application terminates which backs-up another directory. The back-ups should be time/date stamped with a maximum age of say 3 months, after which point those older backups get over written by newer ones.

Specifically, I wanna backup Ardours config file when I launch Ardour and the folder holding all my plug-ins should back-up when I close Ardour.

I know this is some kind of shell script I need to write but NFI where to start.
asbak
Established Member
Posts: 990
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 93 times
Been thanked: 90 times

Re: back up scripts

Post by asbak »

Perhaps one could start Ardour with a script that executes a backup before starting Ardour, then launches Ardour and while the script is running, monitors for an Ardour pid. Then, when Ardour closes and the script detects that the Ardour pid is gone it executes another backup, then terminates the script.

Not sure if it'll work or how to make it work but that's perhaps one way.
Post Reply