/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
- modify it under the terms of version two of the GNU General Public
+ modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*
* Kern Sibbald, Feb MM
*
- * Version $Id$
*/
/* NOTE: #includes at the end of this file */
public:
RES hdr;
dlist *DIRaddrs;
+ dlist *DIRsrc_addr; /* address to source connections from */
char *password; /* Password for UA access */
char *query_file; /* SQL query file */
char *working_directory; /* WorkingDirectory */
char *db_name;
char *db_driver; /* Select appropriate driver */
uint32_t mult_db_connections; /* set if multiple connections wanted */
+ bool disable_batch_insert; /* set if batch inserts should be disabled */
/* Methods */
char *name() const;
char *address;
char *password;
CAT *catalog; /* Catalog resource */
- uint32_t MaxConcurrentJobs; /* Maximume concurrent jobs */
- uint32_t NumConcurrentJobs; /* number of concurrent jobs running */
+ int32_t MaxConcurrentJobs; /* Maximum concurrent jobs */
+ int32_t NumConcurrentJobs; /* number of concurrent jobs running */
char *tls_ca_certfile; /* TLS CA Certificate File */
char *tls_ca_certdir; /* TLS CA Certificate Directory */
char *tls_certfile; /* TLS Client Certificate File */
char *password;
char *media_type;
alist *device; /* Alternate devices for this Storage */
- uint32_t MaxConcurrentJobs; /* Maximume concurrent jobs */
- uint32_t NumConcurrentJobs; /* number of concurrent jobs running */
- uint32_t NumConcurrentReadJobs; /* number of jobs reading */
+ int32_t MaxConcurrentJobs; /* Maximum concurrent jobs */
+ int32_t NumConcurrentJobs; /* number of concurrent jobs running */
+ int32_t NumConcurrentReadJobs; /* number of jobs reading */
char *tls_ca_certfile; /* TLS CA Certificate File */
char *tls_ca_certdir; /* TLS CA Certificate Directory */
char *tls_certfile; /* TLS Client Certificate File */
bool tls_require; /* Require TLS */
bool enabled; /* Set if device is enabled */
bool autochanger; /* set if autochanger */
+ bool AllowCompress; /* set if this Storage should allow jobs to enable compression */
int64_t StorageId; /* Set from Storage DB record */
utime_t heartbeat_interval; /* Interval to send heartbeats */
uint32_t drives; /* number of drives in autochanger */
inline char *STORE::dev_name() const
{
DEVICE *dev = (DEVICE *)device->first();
- return dev->hdr.name;
+ return dev->name();
}
inline char *STORE::name() const { return hdr.name; }
utime_t MaxStartDelay; /* max start delay in seconds */
utime_t MaxRunSchedTime; /* max run time in seconds from Scheduled time*/
utime_t RescheduleInterval; /* Reschedule interval */
- utime_t JobRetention; /* job retention period in seconds */
utime_t MaxFullInterval; /* Maximum time interval between Fulls */
utime_t MaxDiffInterval; /* Maximum time interval between Diffs */
utime_t DuplicateJobProximity; /* Permitted time between duplicicates */
int64_t spool_size; /* Size of spool file for this job */
- uint32_t MaxConcurrentJobs; /* Maximum concurrent jobs */
- uint32_t NumConcurrentJobs; /* number of concurrent jobs running */
+ int32_t MaxConcurrentJobs; /* Maximum concurrent jobs */
+ int32_t NumConcurrentJobs; /* number of concurrent jobs running */
bool allow_mixed_priority; /* Allow jobs with higher priority concurrently with this */
MSGS *messages; /* How and where to send messages */
bool where_use_regexp; /* true if RestoreWhere is a BREGEXP */
bool RescheduleOnError; /* Set to reschedule on error */
+ bool RescheduleIncompleteJobs; /* Set to reschedule incomplete Jobs */
bool PrefixLinks; /* prefix soft links with Where path */
bool PruneJobs; /* Force pruning of Jobs */
bool PruneFiles; /* Force pruning of Files */
bool accurate; /* Set if it is an accurate backup job */
bool AllowDuplicateJobs; /* Allow duplicate jobs */
bool AllowHigherDuplicates; /* Permit Higher Level */
+ bool CancelLowerLevelDuplicates; /* Cancel lower level backup jobs */
bool CancelQueuedDuplicates; /* Cancel queued jobs */
bool CancelRunningDuplicates; /* Cancel Running jobs */
-
+ bool PurgeMigrateJob; /* Purges source job on completion */
+ bool IgnoreDuplicateJobChecking; /* Ignore Duplicate Job Checking */
+
+ alist *base; /* Base jobs */
/* Methods */
char *name() const;
alist drivetype; /* drive type limitation */
char *reader; /* reader program */
char *writer; /* writer program */
- char *ignoredir; /* ignoredir string */
char *plugin; /* plugin program */
};
int32_t num_opts; /* number of options items */
alist name_list; /* filename list -- holds char * */
alist plugin_list; /* filename list for plugins */
+ char *ignoredir; /* ignoredir string */
};
/*
bool recycle_current_volume; /* attempt recycle of current volume */
bool AutoPrune; /* default for pool auto prune */
bool Recycle; /* default for media recycle yes/no */
+ uint32_t action_on_purge; /* action on purge, e.g. truncate the disk volume */
POOL *RecyclePool; /* RecyclePool destination when media is purged */
POOL *ScratchPool; /* ScratchPool source when requesting media */
alist *CopyPool; /* List of copy pools */
CAT *catalog; /* Catalog to be used */
+ utime_t FileRetention; /* file retention period in seconds */
+ utime_t JobRetention; /* job retention period in seconds */
+
/* Methods */
char *name() const;
};
uint32_t level; /* level override */
int32_t Priority; /* priority override */
uint32_t job_type;
+ utime_t MaxRunSchedTime; /* max run time in sec from Sched time */
+ bool MaxRunSchedTime_set; /* MaxRunSchedTime given */
bool spool_data; /* Data spooling override */
bool spool_data_set; /* Data spooling override given */
+ bool accurate; /* accurate */
+ bool accurate_set; /* accurate given */
bool write_part_after_job; /* Write part after job override */
bool write_part_after_job_set; /* Write part after job override given */