⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sitback.h

📁 Linux系统备份源代码 可基于用户自定义策略实现系统、应用数据备份
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************************************************************    file                 : sitback.h    begin                : Wed Jan 26 2000    copyright            : (C) 2000 by Henrik Witt-Hansen    email                : bean@daisy.net ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************//***************************************************************************     RETURN CODES     0 = succes     1 = invalid switch     2 = unexpected data, already a previous script name     3 = Script name exceeds 50 characters     4 = Missing switch data     5 = Invalid number format or overflow/underrun     6 = Unterminated string or string too long     7 = Invalid time-string     8 = No backup/restore script     9 = Unable to open temporary script    10 = No arguments    11 = Out of memory    12 = No files to backup or restore    13 = Error executing script    14 = Filetype not allowed    15 = Unable to list directory content    16 = Unable to obtain directory entry    17 = Unable to create temporary script    18 = Daemon mode not allowed without time-string    19 = Unable to start new thread for internal task    20 = Unable to print to smb printer    21 = Unable to locate smbclient from the samba package    22 = Filename too long for internal code    23 = Unable to print via 'lpr'    24 = File not found    25 = Create or overwrite not allowed for file    26 = No archive name or device    27 = Lock file detected    28 = Unable to open device or create archive    29 = Missing time-string    30 = Unable to write archiveid to file    31 = Unable to create database    32 = Unable to create new entry in the database    33 = Unable to open the archive list    34 = Unable to open database file    35 = Unable to open the archivename file    36 = Invalid format in archivename file    37 = Unable to rename database entry    38 = Unable to set status of database entry    39 = Updating or renaming archive id is not allowed in daemon mode    40 = Unable to prepare exec argument's array    41 = Unexpected system error    42 = Unable to detect, or bad permissions in homedir    43 = Missing Gnu tar    44 = Missing gzip    45 = Missing mt    46 = (OBSOLETE) Unable to set lock for random seed file in <basedir>/var    47 = Unable to open seed file in <basedir>/var    48 = Unable to become a daemon    49 = No archive name although needed    50 = Archive or device no longer available    51 = Argument is not a number    52 = Number is out of range    53 = Program reported an error    54 = Unable to create fifo    55 = Unknown compression tool    56 = Unable to enter message loop    57 = Compressed archives can not be updated    58 = Unable to create exclude list    59 = Unable to create directory needed for run-time housekeeping    60 = Unable to open the excludelist file    61 = Missing rsh    62 = Duplicated switch    63 = Invalid exclude list    64 = Unable to get required environment variable.    65 = Local and remote user mismatch.. (rsh requirement)    66 = Env. Var. USER not set    67 = Script parameter missing    68 = Unable to get user info from /etc/passwd    69 = Homedir does not exist    70 = (OBSOLETE) User does not have read permission on homedir    71 = (OBSOLETE) User does not have write permission on homedir    72 = (OBSOLETE) User does not have execute permission on homedir    73 = (OBSOLETE) User does not have read permission on ~/.sitback    74 = (OBSOLETE) User does not have write permission on ~/.sitback    76 = Unable to create .sitback directory    77 = Unable to list .sitback directory    78 = Error while trying to execute 'before' command    79 = Error while trying to execute 'after' command    80 = Unknown directive in script    81 = Requested compression tool not available    82 = Multi-volume archives can not be compressed    83 = User does not have sufficient permissions on the homedirectory    84 = User does not have sufficient permissions on the sitback homedirectory    85 = User does not have sufficient permissions on a file    86 = User does not have sufficient permissions on the specified archive or device    87 = Conflicting configuration switches/keywords    88 = Lockfile found    89 = Unable to execute remote command    90 = Remote device or file not allowed for filecopy based backup    91 = Remote device or file not allowed for iso cdrom based backup    92 = Missing 'mkisofs'    93 = Missing 'cdrecord'    94 = Remote device or file not allowed for tar based cd-r or cd-rw backup    95 = Invalid tempfile location    96 = Error while moving archive to cd.    97 = Multiple volumes not allowed for the selected operation    98 = Error while trying to open a file    99 = Unable to open report file   100 = Gnu Tar is version 1.13, which has the 'tapesize' bug.   101 = zip is not available, but is required for this operation.   254 = Internal error   255 = Internal limitation, not implemented or debug-mode only ***************************************************************************/#ifndef __SITBACK_H  #define __SITBACK_H/* Uncomment this if you are brave enough to allow sitback to   run suid. Be warned..  this does not give users access   to stuff they are not supposed to access, but it will   give them access to devices and/or files anywhere   on you system, so a stupid user can do massive damage,   if he screws up..!!   Be warned...!!! *///#define ALLOW_SUID/* Enable or disable debugging per default *///#define DEBUG/* The libc getpwuid() function had some mysterious problems, if they are still   present, then remove this define, to get a working replacement for getpwuid() */#define LIBC_GETPWUID/********************************************************************  Non user-serviceable parts********************************************************************//*we use threads in the code*/#define _REENTRANT/* non-serviceable parts of debug system */extern int enable_dbg;extern void __dbg(char *formatstring, ... );#define DEBUG_DESTINATION "/tmp/sitback.debug"//#define DEEP_DEBUG#define debug __dbg("[%s %u]  ",__FILE__,__LINE__); __dbg/*global defines*/#define BACKUP        0#define RESTORE       1#define LIST          2#define SINGLE        3#define DAEMON        4#define GZIP          5#define BZIP2         6#define COMPRESS      7#define ZIP           8#define TAR           0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -