You are not logged in.

#1 2014-08-17 19:43:21

derekp7
Member
Registered: 2014-08-17
Posts: 3

Default directories for a backup package?

I'm working on making a package for a backup program, and would like to follow the FHS and specifically Arch Linux's standards as much as possible.  The specific question: In the app's default config file, where should I specify the location where an external backup media (such as a USB hard drive) is mounted?  Under some distros, this would be /media/backup, for example, or /var/backups.  I was thinking of sticking with /media/backup, and shipping a udev rule to automount a USB hard drive with a volume label of "backup_drive" to that location, but it may be better to just have instructions to set the user's preferred location manually.

Also, this backup program uses a data catalog in an SQLite DB format.  I could package it up so that the default location for this is also the same location as above, or I could keep the catalog DB on internal storage (for speed purposes), and have the backup script kick off an export of it to the external storage when done.  If I go this route, would the appropriate location for this SQLite DB be in /var/[programname]/catalogdb, or in /srv/[programname]/catalogdb?  (My reading of the FHS says that /srv should only be set up by the sysadmin, and that packages shouldn't install anything (even directory entries) in it).

Thanks.

Edit: This question could apply equally to any other package who's normal use case involves an external media device that is dedicated to that package's activities.  However, backups are the only case I can thinkg of at the moment.

Last edited by derekp7 (2014-08-17 21:42:27)

Offline

Board footer

Powered by FluxBB