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: de93c3c4bc28d62c567dcb9d8eac9c8c59135154cb1c0b5b3f2993dcf833f7de
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: d7c7b7b1cb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2000-09-21
10:10:22
Initial revision check-in: de93c3c4bc 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: 95e7e6e0f2 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 ]