This file is indexed.

/usr/share/doc/dump/examples/remote_backup_ssh/backitup is in dump 0.4b44-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh

#
# This script will backup local drives to a remote tape drive over ssh.
#  written by David B. Peterson <dave@toppledwagon.com>
#
# Follow these steps before using it the first time:
# 1.  Configure the env variables below, especially OPERATOR, TAPEHOST
#      TAPEDEV, and FILESYSTEMS
# 2.  run the following commands as root (on the machine to be backed up):
# ssh-keygen -t dsa
# cat ~/.ssh/id_dsa.pub | ssh OPERATOR@TAPEHOST 'cat - >> ~/.ssh/authorized_keys2'
#
# where OPERATOR and TAPEHOST are as you have defined below.

# We will run under screen so you can come back to the backup, if you need to.
if [ ! "$WINDOW" ]; then
   exec screen $0
   exit
fi

# ssh-agent allows us to backup securely without entering the passphrase so
# many times.  This version uses openssh v2.9
if [ ! $SSH_AGENT_PID ]; then
   echo Starting ssh-agent...
   exec ssh-agent -- /bin/sh $0
   exit
fi

OPERATOR=backup
TAPEHOST=tapehost.example.com
TAPEDEV=/dev/nst0
RMT=/sbin/rmt
RSH='/usr/bin/ssh'
DATE=`date +%Y%m%d`
DUMP='/sbin/dump 0auf'
LOGDIR=/var/log/backup
FILESYSTEMS='hda1 hda7 hda6 hda5 hda10'

#### config above ####
# backup FILESYSTEMS to the TAPEDEV on TAPEHOST with DUMP as OPERATOR using RSH

export RMT RSH
mkdir -p $LOGDIR &> /dev/null
ssh-add ~/.ssh/id_dsa

echo "Rewinding tape..."
REWIND="mt -f $TAPEDEV rewind"
$RSH $OPERATOR@$TAPEHOST $REWIND

for FS in $FILESYSTEMS
do
   $DUMP $OPERATOR@$TAPEHOST:$TAPEDEV /dev/$FS 2>&1 | tee $LOGDIR/$FS.$DATE
done

echo "Rewinding and ejecting tape..."
OFFLINE="mt -f $TAPEDEV offline"
$RSH $OPERATOR@$TAPEHOST $OFFLINE