Sponsored Content
Top Forums Shell Programming and Scripting Script to archive logs and sftp to another archive server Post 303012102 by apmcd47 on Tuesday 30th of January 2018 04:18:26 AM
Old 01-30-2018
So why can't you just use the perl script and modify it to use SFTP instead of FTP?
 

9 More Discussions You Might Find Interesting

1. Solaris

Archive data accross solaris server

Can anyone tell me how to safely archive data across the network instead of tape in Solaris. Thanks Remi (1 Reply)
Discussion started by: Remi
1 Replies

2. UNIX for Advanced & Expert Users

how to archive logs older than 5 days & then delete them?

My code is tar -cvf logs.tar `find /usr/openv/logs/512*.log -mtime +2` && find *.log* -mtime +2 -exec rm {} \; this gives me output as: tar: Missing filenames:confused: (1 Reply)
Discussion started by: timus1980
1 Replies

3. Shell Programming and Scripting

simple script to alert of archive logs filling

Hi all. I am not a DBA. But I do have responsibility for making sure the archive logs dont fill up and cause the database. This happend the other day while I was absent (sick) and I got a good ticking off for it. Needless to say I dont want this happen! Could anyone lend a hand to a... (8 Replies)
Discussion started by: Incremental
8 Replies

4. Shell Programming and Scripting

Extracting from archive | compressing to new archive

Hi there, I have one huge archive (it's a system image). I need sometime to create smaller archives with only one or two file from my big archive. So I'm looking for a command that extracts files from an archive and pipe them to another one. I tried the following : tar -xzOf oldarchive.tgz... (5 Replies)
Discussion started by: chebarbudo
5 Replies

5. Shell Programming and Scripting

Archive log Pull script from one server to another server

Hi all, Iam looking out for a shell script which pulls archive from Server A to Server B. And at the same time, we dont want the archives which are already pulled in Server B to be removed from Server A. Please help me on this, I have been trying on this for a quiet few time. ... (3 Replies)
Discussion started by: vivi.raghav
3 Replies

6. Shell Programming and Scripting

Connect to Server B from Server A and Archive the file

Hi I need to connect to a ServerB from Server A eg: Server A : 172.20.273.51, un: xxx, pwd: xxx Server B: 172.20.273.51, un:yyy, pwd: yyy Need to copy the files(with name starts with IME*) from /grid/pc/IME* to /grid/pc/archive What will be the command or script to... (3 Replies)
Discussion started by: vsmeruga
3 Replies

7. UNIX for Dummies Questions & Answers

Archive files that was already sftp'd/process

Hi, I need to modify my archive script to archive only files which is already sftp to the windows. We encounter some issue which the file is already archiving though it is not yet sftp'd to the Windows. Any answers.?Thanks! (1 Reply)
Discussion started by: sonja
1 Replies

8. Solaris

archive logs mount point space check script

I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected. -------------------------------------------------------------------------... (0 Replies)
Discussion started by: dreams5617
0 Replies

9. Shell Programming and Scripting

SFTP file and archive only if its succedded

Hi All, I have a requirement where I have to archive the file as soon as I sFTP the file to remote location below is the code I am going with ls $FILE_NAME | while read FNAME do sftp -v -oport=nn $FTP_USER@$FTP_HOST <<EOF 2>&1 | tee -a ${LOG_FILE_NAME} cd ${TGT_FOLDER_NAME} lcd... (4 Replies)
Discussion started by: Pratik4891
4 Replies
GlusterFS(8)							   Gluster Inc. 						      GlusterFS(8)

NAME
GlusterFS - clustered file system SYNOPSIS
glusterfs [options] [mountpoint] DESCRIPTION
GlusterFS is a clustered file system, capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP and interconnect into one large parallel network file system. Storage bricks can be made of any commodity hardware, such as x86-64 server with SATA-II RAID and Infiniband HBA. GlusterFS is fully POSIX compliant file system. On client side, it has dependency on FUSE package, on server side, it works seemlessly on different operating systems. Currently supported on GNU/Linux and Solaris. OPTIONS
Basic options -f, --volfile=VOLUME-FILE File to use as VOLUME-FILE. -l, --log-file=LOGFILE File to use for logging (the default is <INSTALL-DIR>/var/log/glusterfs/<MOUNT-POINT>.log). -L, --log-level=LOGLEVEL Logging severity. Valid options are TRACE, DEBUG, INFO, WARNING, ERROR and CRITICAL (the default is INFO). -s, --volfile-server=SERVER Server to get the volume from. This option overrides --volfile option. --volfile-max-fetch-attempts=MAX-ATTEMPTS Maximum number of connect attempts to server. This option should be provided with --volfile-server option (the default is 1). Advanced options --acl Mount the filesystem with POSIX ACL support. --debug Run in debug mode. This option sets --no-daemon, --log-level to DEBUG, and --log-file to console. --enable-ino32=BOOL Use 32-bit inodes when mounting to workaround application that doesn't support 64-bit inodes. --fopen-keep-cache Do not purge the cache on file open. --mac-compat=BOOL Provide stubs for attributes needed for seamless operation on Macs (the default is off). -N, --no-daemon Run in the foreground. -p, --pid-file=PIDFILE File to use as PID file. --read-only Mount the file system in 'read-only' mode. --selinux Enable SELinux label (extended attributes) support on inodes. -S, --socket-file=SOCKFILE File to use as unix-socket. --volfile-id=KEY Key of the volume file to be fetched from the server. --volfile-server-port=PORT Port number of volfile server. --volfile-server-transport=TRANSPORT Transport type to get volume file from server (the default is tcp). --volume-name=VOLUME-NAME Volume name to be used for MOUNT-POINT (the default is top most volume in VOLUME-FILE). --worm Mount the filesystem in 'worm' mode. --xlator-option=VOLUME-NAME.OPTION=VALUE Add/Override a translator option for a volume with the specified value. Fuse options --attribute-timeout=SECONDS Set attribute timeout to SECONDS for inodes in fuse kernel module (the default is 1). --background-qlen=N Set fuse module's background queue length to N (the default is 64). --congestion-threshold=N Set fuse module's congestion threshold to N (the default is 48). --direct-io-mode=BOOL Enable/Disable the direct-I/O mode in fuse module (the default is enable). --dump-fuse=PATHR Dump fuse traffic to PATH --entry-timeout=SECONDS Set entry timeout to SECONDS in fuse kernel module (the default is 1). --gid-timeout=SECONDS Set auxilary group list timeout to SECONDS for fuse translator (the default is 0). --negative-timeout=SECONDS Set negative timeout to SECONDS in fuse kernel module (the default is 0). --volfile-check Enable strict volume file checking. Miscellaneous Options -?, --help Display this help. --usage Display a short usage message. -V, --version Print the program version. FILES
/var/lib/glusterd/vols/*/*.vol EXAMPLES
mount a volume named foo on server bar with log level DEBUG on mount point /mnt/foo # glusterfs --log-level=DEBUG --volfile-id=foo --volfile-server=bar /mnt/foo SEE ALSO
fusermount(1), mount.glusterfs(8), gluster(8) COPYRIGHT
Copyright(c) 2006-2011 Red Hat, Inc. <http://www.redhat.com> 07 March 2011 Clustered File System GlusterFS(8)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy