03-12-2012
So why use sftp then?
The obvious would be to use ssh...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
find /basedirectory -type f -mtime +3 >> /tmp/tempfile
find /basedirectory -type d -mtime +3 >> /tmp/tempfile
mailx -s "List of removed files and folders" myemail@domain.com < /tmp/te
mpfile
rm /tmp/tempfile
find /basedirectory -type f -mtime +3 -exec rm {} \;
find /basedirectory -type d... (7 Replies)
Discussion started by: melanie_pfefer
7 Replies
2. Shell Programming and Scripting
I'm new to shell script.... can any one help...
What is the shell script to delete the files older than 2 days ? (3 Replies)
Discussion started by: satishpabba
3 Replies
3. Red Hat
Hi,
I have dummies questions:
My script here can find the files in any directories older than 30 days then it will delete the files but not the directories. I would like to also be able to delete the directories that hold old files more than 30 days not just the files itself.
find . -type f... (2 Replies)
Discussion started by: lamoul
2 Replies
4. Shell Programming and Scripting
Dear all,
i use incremental backup my data with .zip to my hard drive. what i need is i don't want the old .zip file older than 30 days. how to write a shell script automatically remove my external hard disc zip backup folders older than 30 days?
Regards, (2 Replies)
Discussion started by: joneggk
2 Replies
5. Shell Programming and Scripting
I need to archive the older than 30 day file to another uinx server.I have wrote the below uinx script.
for LOOK_DIR in /TempFiles
do
for FILE in `find ${LOOK_DIR} -mtime -30 -exec ls {} \;`
do
echo ${FILE} >> file_list ## This file will have the list of files copied and... (12 Replies)
Discussion started by: murari83.ds
12 Replies
6. Shell Programming and Scripting
Hi experts,
can anyone suggest me on the below:
how to write a shell script to search and delete files on windows server.
-script runs on unix box
-it should search for specific files on windows server and delete them periodically. (2 Replies)
Discussion started by: chpradeepch
2 Replies
7. Shell Programming and Scripting
hello,
i am trying to get a list of files to be scped from the remote server
by running the below in my local unix server ( note - there is a passwordless connectivity setup made between the local and remote server) and, we use KSH.
---
ssh $scp_host "find /a/b/c/*/ -iname "$remote_file"" >... (4 Replies)
Discussion started by: billpeter3010
4 Replies
8. Shell Programming and Scripting
Hello All,
Can someone please help me out in creating the find command to search and delete files older than 1 days at a desired location.
Thanks in advance for your help. (3 Replies)
Discussion started by: Pandee
3 Replies
9. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
10. Shell Programming and Scripting
Hi,
I have multiple files in my log folder. e.g:
a_m1.log
b_1.log
c_1.log
d_1.log
b_2.log
c_2.log
d_2.log
e_m1.log
a_m2.log
e_m2.log
I need to keep latest 10 instances of each file.
I can write multiple find commands but looking if it is possible in one line.
m file are monthly... (4 Replies)
Discussion started by: wahi80
4 Replies
LEARN ABOUT CENTOS
fedfs-delete-replication
FEDFS-DELETE-REPLICATION(8) System Manager's Manual FEDFS-DELETE-REPLICATION(8)
NAME
fedfs-delete-replication - send a FEDFS_DELETE_REPLICATION ADMIN protocol request
SYNOPSIS
fedfs-delete-replication [-?d] [-n nettype] [-h hostname] [-s security] path
INTRODUCTION
RFC 5716 introduces the Federated File System (FedFS, for short). FedFS is an extensible standardized mechanism by which system adminis-
trators construct a coherent namespace across multiple file servers using file system referrals. For further details, see fedfs(7).
FedFS-enabled file servers allow remote administrative access via an authenticated RPC protocol known as the FedFS ADMIN protocol. Using
this protocol, FedFS administrators manage FedFS junctions and NSDB connection parameter information on remote FedFS-enabled file servers.
DESCRIPTION
The fedfs-delete-replication(8) command is part of a collection of low-level single-use programs that is intended for testing the FedFS
ADMIN protocol or for use in scripts. It sends a single FEDFS_DELETE_REPLICATION request to a remote FedFS ADMIN protocol service.
The FEDFS_DELETE_REPLICATION request deletes a replication marker in a local file system on a remote file server. The fedfs-delete-repli-
cation(8) command taks a single positional parameter which is the pathname on the remote server of the replication marker to be deleted.
This pathname is relative to the root of the local file system on the remote server.
OPTIONS
-d, --debug
Enables debugging messages during operation.
-?, --help
Displays fedfs-delete-replication(8) version information and a usage message on stderr.
-h, --hostname=hostname
Specifies the hostname of a remote FedFS ADMIN service. If this option is not specified, the default value is localhost.
-n, --nettype=nettype
Specifies the transport to use when contacting the remote FedFS ADMIN service. Typically the nettype is one of tcp or udp. If this
option is not specified, the default value is netpath. See rpc(3t) for details.
-s, --security=flavor
Specifies the security flavor to use when contacting the remote FedFS ADMIN service. Valid flavors are sys, unix, krb5, krb5i, and
krb5p. If this option is not specified, the unix flavor is used. See the SECURITY section of this man page for details.
EXAMPLES
Suppose you are the FedFS administrator of the example.net FedFS domain. To delete an existing FedFS replication on the remote server
fs.example.net, use:
$ fedfs-delete-replication -h fs.example.net /export/replication1
SECURITY
By default, or if the sys and unix flavors are specified with the --security=flavor option, the fedfs-create-junction(8) command uses
AUTH_SYS security for the Remote Procedure Call. AUTH_SYS has known weaknesses and should be avoided on untrusted networks.
The RPC client uses the Kerberos v5 GSS mechanism if a Kerberos security flavor is specified. When specifying a Kerberos security flavor,
the user must first obtain a valid Kerberos ticket using kinit(1) before running fedfs-create-junction(8).
The AUTH_NONE security flavor is no longer supported by this implementation.
SEE ALSO
fedfs(7), rpc.fedfsd(8), kinit(1), rpc(3t)
RFC 5716 for FedFS requirements and overview
COLOPHON
This page is part of the fedfs-utils package. A description of the project and information about reporting bugs can be found at
http://wiki.linux-nfs.org/wiki/index.php/FedFsUtilsProject.
AUTHOR
Chuck Lever <chuck.lever@oracle.com>
3 February 2014 FEDFS-DELETE-REPLICATION(8)