Visit Our UNIX and Linux User Community


Understanding Benchmarks


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Understanding Benchmarks
# 1  
Old 11-01-2011
Understanding Benchmarks

I need a little clarification in understanding why there would be a need for a benchmark file when used with a backup script. Logically thinking would tell me that the backups itself(backuptest.tgz) would have the time created and etc. So what would be the purpose of such a file:

Code:
touch .benchmark

??
# 2  
Old 11-01-2011
The backup files may be deleted, dumped on tape and put in a fire safe, or what have you. Why keep them on the same system?
# 3  
Old 11-01-2011
thanks for the reply. I think I confused you. This is what I am talking about

Code:
includefile=$tmpdir/include
excludefile=$tmpdir/exclude
benchmark=$logdir/.backup_benchmark
if [ $level = 0 ]; then
  touch $benchmark
  $TAR czXf $excludefile - `cat $includefile`
else
  # -N arg must start with dot to be interpreted as a filename
  $TAR czNXf ./$benchmark $excludefile - `cat $includefile`

They create a .backup_benchmark before the backup is created. Why is that?
# 4  
Old 11-01-2011
They use the -N option, to archive files newer than the benchmark file. So next backup they take, avoids previously backed up files.
# 5  
Old 11-02-2011
I have created a script that performs that same function but I use find and CPIO instead, so just to make sure, I dont need a benchmark file if I am using:

Full Backup Stuff

Code:
sudo find /home -depth ! -path "*/\.*" -print| grep -f includefile | grep -v -f excludefile

Incremental Stuff

Code:
sudo find /home -depth -mtime 0 ! -path "*/\.*" -print | grep -f includefile | grep -v -f excludefile

??
# 6  
Old 11-02-2011
find isn't psychic, it won't know when you took your last backup.
# 7  
Old 11-02-2011
thanks for the replies.

Previous Thread | Next Thread
Test Your Knowledge in Computers #905
Difficulty: Easy
Generally speaking, Unix systems are commercial, closed source and propriety operating systems so it is expensive to customize for supercomputing projects. Linux, on the other hand, is free and easier to customize.
True or False?

8 More Discussions You Might Find Interesting

1. Virtualization and Cloud Computing

VMmark virtualization benchmarks

Hi, We have to make a decision to buy 10 new servers for MS Exchange/Domain Controller running virtual tiles and for hardware we have choice of HP Proliant DL380 G6, Dell PowerEdge R710 & IBM X3650 M2, somebody sent me comparison of VMmark virtualization performance benchmark which states that... (1 Reply)
Discussion started by: tayyabq8
1 Replies

2. UNIX Benchmarks

FreeBSD `buildkernel' and `buildworld' Benchmarks

Just for fun, I thought I'd post my output from `time make -j4 buildworld' and `time make -j4 buildkernel' and see if anyone else had any good times. The machine is an Intel Core2Duo 2.2GHz with 2048MB DDR3. -------------------------------------------------------------- >>> Kernel build... (1 Reply)
Discussion started by: glen.barber
1 Replies

3. Linux Benchmarks

Results for Linux Benchmarks

Hi, I was trying to build Linux Benchmarks with latest Intel C++ Compiler. When I used -ipo (inter-procedural optimization) option, arithmetic test (arith.c) failed on execution. The problem is Intel compiler's advanced optimization option (-ipo) optimizes much more than expected and this... (50 Replies)
Discussion started by: cpjain
50 Replies

4. Windows & DOS: Issues & Discussions

Intel CPU benchmarks

Hey I was wondering if anyone knows here I can get a graph of Intel Vs AMD CPU's graph. I have found one and it's great though only for the desktop CPU. I'm also looking for one that includes the Pentium M CPU's and the next CPU's after that. This is because I'm looking at getting a laptop... (1 Reply)
Discussion started by: woofie
1 Replies

5. UNIX Benchmarks

unix s/w download using benchmarks

I downloaded the unix s/w given in the bench marks to my home laptop. The C: drive isn't partitioned.The instructions are given to unzip, make and run. please list the proper ways to do the commands how to unzipa nd make them. should i partition my hard drive? (3 Replies)
Discussion started by: sravus
3 Replies

6. Linux Benchmarks

Instructions for Linux Benchmarks

STEP 1: Get the source here: https://www.unix.com/source/bm.zip or https://www.unix.com/source/unix_linux_bench.tar.gz STEP 2: unzip or untar and cd into the bm directory STEP 3: make (Note: there is a pre-compiled Linux binary in the distro, so Linux users don't have to make a... (0 Replies)
Discussion started by: Neo
0 Replies

7. UNIX Benchmarks

Instructions for UNIX Benchmarks

STEP 1: Get the source here: https://www.unix.com/source/bm.zip or https://www.unix.com/source/unix_linux_bench.tar.gz STEP 2: Unzip or Untar STEP 3: make STEP 4: Run STEP: 5: Please login to www.unix.com and post test results along with platform info to: Include (if you... (0 Replies)
Discussion started by: Neo
0 Replies

8. UNIX for Advanced & Expert Users

Linux Processing Benchmarks ?

Hello everyone. Does anyone know where to I could find published benchmarks for how a Linux box performs. It would be nice if I could find a comparison to the Windows OS. Thanks, Lance (2 Replies)
Discussion started by: lcstephens
2 Replies

Featured Tech Videos