1

I am writing a small shell script which will validate the NFS backup by looking into the snapshot and checking the contents of one directory to make sure the correct contents are being backed up.

CreateTestFile.sh - this will create file backupchecker.txt a directory with date ValidateNFSBackup.sh - this will validate the backup by looking for this backupchecker.txt content.

Am I going in right direction?

Appreciate your time.

Devesh
  • 111
  • 2
  • It's a bit confused. Are you backuping just content of single directory? If yes, just run "cd && md5sum * > /tmp/.md5". Then copy the md5 file to the backup location and run "md5sum -c .md5" The best if you do that on the remote server, otherwise you'd have to transfer all data over the network again (bacause of NFS). Or avoid using NFS and use rsync instead. – Jaroslav Kucera Oct 23 '17 at 21:36
  • I find hard to understand what you're asking. What's the purpose of mentioning this custom shell scripts omitting the code? What help would you expect if we don't know what your scripts actually do? – Marco Oct 24 '17 at 04:21
  • @JaroslavKucera - just one directory – Devesh Oct 27 '17 at 18:27

0 Answers0