~ubuntu-core-doc/serverguide/trunk

« back to all changes in this revision

Viewing changes to serverguide/C/backups.xml

  • Committer: Doug Smythies
  • Date: 2015-04-01 14:20:17 UTC
  • mfrom: (246.1.4 serverguide-review-7.1)
  • Revision ID: dsmythies@telus.net-20150401142017-w6qhjn1g98ckfp2n
some fixes to backup script example, dead link and other minor changes; MP: #254491; LP: #1038607; by Ted Cox

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
      The archive filename is determined using additional command line utilities.
37
37
      </para>
38
38
<programlisting>
39
 
#!/bin/sh
 
39
#!/bin/bash
40
40
####################################
41
41
#
42
42
# Backup to NFS mount script.
152
152
        <title>Executing from a Terminal</title>
153
153
        <para>
154
154
        The simplest way of executing the above backup script is to copy and paste the contents into a file.  <filename>backup.sh</filename> 
155
 
        for example.  Then from a terminal prompt:  
 
155
        for example. The file must be made executable:
 
156
        </para>
 
157
<screen>
 
158
<command>chmod u+x backup.sh</command>
 
159
</screen>
 
160
        <para>
 
161
        Then from a terminal prompt:  
156
162
        </para>
157
163
<screen>
158
 
<command>sudo bash backup.sh</command>
 
164
<command>sudo ./backup.sh</command>
159
165
</screen>
160
166
        <para>
161
167
        This is a great way to test the script to make sure everything works as expected.