dear all,
i want to copy all files in my home dir to another.
from my home dir i have given ls -la then
some hidden files are there with dot . .. and i also want to copy all dirs in my home as it is . because iam upgrading the system
how to copy all files and dirs in my home dir... (1 Reply)
Hi. I have a script which is deleting files with a particular extension and older than 45 days.The code is:
find <path> -name "<filename_pattern>" -mtime +45 -exec rm {} \;
But the problem is that some important files are also getting deleted.To prevent this I have decide to make a dummy... (4 Replies)
I want to backup all the directory tress, including hidden directories, without copying any files.
find . -type d gives the perfect list.
When I tried tar, it won't work for me because it tars all the files.
find . -type d | xargs tar -cvf a.tar
So i tried rsync.
On my own test box, the... (4 Replies)
I usually use ls -al | awk '{sum = sum + $5} END {print sum}' to sum the size of all files in a directory. However this command includes the hidden files.
Is there a command to just add up all the files/sub-directories excluding the hidden files (begins with . and ..)
I wanted to check the... (10 Replies)
Hi,
In one folder there is a hidden folder. Whenever i do any ls -a i can't see the folder. However i can get into the folder by cd .foldername.
Would you please help me to identify what is the problem here. (13 Replies)
I want to list all directories hidden or not hidden.
ls -ld */ => shows only not hidden directories
so i guess the answer would be to add the a option to show all files
ls -lad */ => not working :confused:
ls -la | grep "^d" => works
But I would like to know why I can't use ls -lad... (4 Replies)
I need to pull down a good bit of files for another support team for an upgrade project. I have a server.list with all of the server names.
I need to do two parts:
FIRST:
I have this example, but it does not list the server name in front of each line.
#! /bin/bash
for server in $(<... (10 Replies)
Hi,
I need to find a solution for backing up/transferring BACKUP (dump file) from AIX (specifically) to Windows 2012 Hidden Share.
The vendor says that he cannot do a copy from his system to hidden share because it requires a password...
Personally, I think that there should be a solution... (9 Replies)
Discussion started by: pob579
9 Replies
LEARN ABOUT DEBIAN
ropkg::rsync::conffile
RoPkg::Rsync::ConfFile(3pm) User Contributed Perl Documentation RoPkg::Rsync::ConfFile(3pm)NAME
RoPkg::Rsync::ConfFile
DESCRIPTION
RoPkg::Rsync::ConfFile is a class used to manipulate rsync configuration files. Is capable to maintaine the order of the modules, and even
keep your comments and empty lines intact.
SYNOPSIS
#!/usr/bin/perl
use warnings;
use strict;
sub main {
my $cf = new RoPkg::Rsync::ConfFile(filename => '/etc/rsyncd.conf');
$cf->Write('/tmp/new_rsyncd.conf');
return 0;
}
main();
METHODS
All methods, throw the OutsideClass exception, if you use them as class methods. Besides OutsideClass the methods are throwing other
exceptions as well. Refer to each method documentation for more information.
new(%hash)
The class constructor. Accepts a hash as parameter. At this moment only one parameter can be specified inside the hash: filename . If this
parameter is present, the file specified is parsed and loaded into the object.
AddParam($pname, $pvalue)
Add a new global parameter named $pname with value $value.
AddComment($pval)
Add a new global comment with value $pval
AddBlank($bval)
Add a new global blank line with value $bval
AddNode($node)
Adds a new RoPkg::Rsync::Node object to the current object. Before the node is added, the nodes list is checked for duplicates of the
object. If a duplicate is found, the method does nothing.
Exceptions:
If $node is not a instance of RoPkg::Rsync::Node, Param::Wrong exception is raised.
DelNode($node_name)
Removes a node from the nodes list. The nodes are searched by their names. Returns -1 if the node was not found, the new number of nodes
otherwise.
HasNode($node_name)
Returns 1 if the node with name $node_name was found in the nodes list, 0 otherwise.
Clean()
Clean the object. Removes all information (the nodes list, statistics, etc). Always returns 1.
Parse($filename)
Parse the configuration file $filename and returns the number of nodes. If $filename is not defined Param::Missing exception is raised. If
the path does not point to a existing file, File::NotFound exception is raised. If the file could not be opened, File::Open exception is
raised.
Write($path)
Write the configuration into the file specified by path $path.
ToString()
Returns the string representation of the configuration file.
PREREQUISITES
perl 5.008 (or later) is required. Besides perl, you must have the following:
*) RoPkg::Exceptions
*) Scalar::Util
*) English
SEE ALSO
RoPkg::Rsync::Atom RoPkg::Rsync::ConfFile RoPkg::Exceptions
AUTHOR
Subredu Manuel <diablo@iasi.roedu.net>
LICENSE
Copyright (C) 2005 Subredu Manuel. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the
same terms as Perl itself. The LICENSE file contains the full text of the license.
perl v5.8.8 2006-06-09 RoPkg::Rsync::ConfFile(3pm)