contact me
unread,Jul 13, 2015, 10:41:12 AM7/13/15You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
does anyone have a simple example script, to verify the remote server available mount space, and compare with source file size, then initiate SCP file transer if the target mount available space is greater than source file size?
(OSName: Linux, Machine: x86_64 Distros: Red Hat Enterprise Linux Server 5.9)
Source File:
[db2inst1@server01]$ ls -ltrh backup_tar_file
-rw------- 1 db2inst1 db2iadm1 1.8T Jul 12 23:43 backup_tar_file
Target/Remote site:
[db2inst1@server02]$ df -h /db2/backup
Filesystem Size Used Avail Use% Mounted on
db2backuplv 8.9T 7.2T 1.3T 85% /db2/backup