Overview
Comment:Initial revision
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 8264ce777185cd28668b9aa625d25034ed4e0dfd491fee1cd397ba15050170c6
User & Date: gawthrop@users.sourceforge.net on 2000-09-21 10:10:22
Other Links: branch diff | manifest | tags
Context
2000-09-27
16:12:50
Use expr to evaluate arithmetic - compatible with sh (as opposed to
bash)
check-in: 2f1170e58c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2000-09-21
10:10:22
Initial revision check-in: 8264ce7771 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:08:30
Version 4.7.1 - bug in odes.dat representation fixed in dat22dat check-in: 6f19dd8c89 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/mtt_backup version [783be72324].
































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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#!/bin/sh
# Does a backup with date of selected files.

#Name of archive
filename=`date | awk '{printf("mtt_%s%s_%s.tgz\n", $2,$3,$6)}'`
echo Backup file $filename

#Files to backup
dir="mtt"

#Check whether archive exists here
if [ -f "$filename" ]; then
    echo File $filename already exists - exiting
    exit    
fi

# Listing files to ignore
echo Finding irrelevant files
find $dir -name '*.*' -print |\
  grep 'dvi$\|ps$\|pdf$\|html$\|info$\|gif$\|log$\|MTT_work\|core\|~$' >IGNORE
wc IGNORE | awk '{print "Ignoring", $1, "files"}'

#Inform user
echo Backing up $dir to $filename

#Tar the files
tar --exclude-from IGNORE --create --gzip --file $filename $dir

#Size info
ls -l $filename
#


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]