06-30-2011
The "." and ".." special directories originally used to be directory hardlinks (created by hand!) but this hasn't been the case for decades now. This discussion's come up a few times, and nobody's managed to find a modern OS that supports directory hardlinks so far.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
what is link? and soft link? how about hard one and symbolic link.
and inode.
i get confuse about this links. could anyone help me with full explainsion?
thks
Gusla (5 Replies)
Discussion started by: gusla
5 Replies
2. UNIX for Dummies Questions & Answers
Would I be correct in assuming that find doesn't bother recursivley searching down sim links. (It doesn't seem to so I guess it doesn't!!!) Is there anyway to make it do so? (3 Replies)
Discussion started by: peter.herlihy
3 Replies
3. UNIX for Dummies Questions & Answers
hi, i am in a directory, have 2 files as below
then do a ls -l gives the below
lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/filea
lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/fileb
now, when i do a cd /adir, the system said, adir not... (5 Replies)
Discussion started by: yls177
5 Replies
4. Shell Programming and Scripting
I am digging for certain types of files in the current directory and all its sub-directories and archiving them with the following code:
#! /usr/bin/ksh
Archive=`date +%Y_%m_%d_%T`
find . -type f \( -name \*\.ksh -o -name \*\.sql -o -name \*\.ini \) -print|xargs tar -cf... (4 Replies)
Discussion started by: manthasirisha
4 Replies
5. AIX
Hi
I'm logged in as root in an aix box
Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies
6. UNIX for Dummies Questions & Answers
Hai,
give me a simple example for soft and hard links.
this will work for soft link ?? ln -s (2 Replies)
Discussion started by: Ramesh M
2 Replies
7. Shell Programming and Scripting
Hi team, i am writing a purge script to delete softlinks and hardlinks on linux system which are 3/10/30 days old. To test the script i need to create links with old timestamp, i am able to cange timestamp for files but not for links.
i tried touch -h option but this option is not available on... (1 Reply)
Discussion started by: Satyak
1 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I would like to create symbolic links for a series of files in my cwd (after confirming that the links don't already exist). The above files all have a similar prefix, but different extensions.
I created a shell script like shown below and I get an error message "No such file or... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
9. UNIX for Dummies Questions & Answers
Hello.
I have some main directories.
For example :
/main_dir1
/main_dir2In main_dir2, I have a sub dir named sub_dir2-1 with 2 files in it ( file_2-1, file_2-2 )
/main_dir2sub_dir2-1file_2-1
file_2-2From "/main_dir1/A/B/C" I make a soft link
ln -s /main_dir2/sub_dir2-1 ... (6 Replies)
Discussion started by: jcdole
6 Replies
10. UNIX for Advanced & Expert Users
Hi. Can somebody tell me if there's a way of creating a symbolic link from a directory on one filesystem to that on another that will allow a find command that doesn't use the -L param to locate a particular file under that new 'linked' dir. With a normal sym link the find command on that... (6 Replies)
Discussion started by: user052009
6 Replies
LEARN ABOUT DEBIAN
s3qlcp
S3QLCP(1) S3QL S3QLCP(1)
NAME
s3qlcp - Copy-on-write replication on S3QL file systems
SYNOPSIS
s3qlcp [options] <source-dir> <dest-dir>
DESCRIPTION
S3QL is a file system for online data storage. Before using S3QL, make sure to consult the full documentation (rather than just the man
pages which only briefly document the available userspace commands).
The s3qlcp command duplicates the directory tree source-dir into dest-dir without physically copying the file contents. Both source and
destination must lie inside the same S3QL file system.
The replication will not take any additional space. Only if one of directories is modified later on, the modified data will take additional
storage space.
s3qlcp can only be called by the user that mounted the file system and (if the file system was mounted with --allow-other or --allow-root)
the root user. This limitation might be removed in the future (see issue 155).
Note that:
o After the replication, both source and target directory will still be completely ordinary directories. You can regard <src> as a snapshot
of <target> or vice versa. However, the most common usage of s3qlcp is to regularly duplicate the same source directory, say documents,
to different target directories. For a e.g. monthly replication, the target directories would typically be named something like docu-
ments_January for the replication in January, documents_February for the replication in February etc. In this case it is clear that the
target directories should be regarded as snapshots of the source directory.
o Exactly the same effect could be achieved by an ordinary copy program like cp -a. However, this procedure would be orders of magnitude
slower, because cp would have to read every file completely (so that S3QL had to fetch all the data over the network from the backend)
before writing them into the destination folder.
Snapshotting vs Hardlinking
Snapshot support in S3QL is inspired by the hardlinking feature that is offered by programs like rsync or storeBackup. These programs can
create a hardlink instead of copying a file if an identical file already exists in the backup. However, using hardlinks has two large dis-
advantages:
o backups and restores always have to be made with a special program that takes care of the hardlinking. The backup must not be touched by
any other programs (they may make changes that inadvertently affect other hardlinked files)
o special care needs to be taken to handle files which are already hardlinked (the restore program needs to know that the hardlink was not
just introduced by the backup program to safe space)
S3QL snapshots do not have these problems, and they can be used with any backup program.
OPTIONS
The s3qlcp command accepts the following options:
--debug
activate debugging output
--quiet
be really quiet
--version
just print program version and exit
EXIT STATUS
s3qlcp returns exit code 0 if the operation succeeded and 1 if some error occurred.
SEE ALSO
The S3QL homepage is at http://code.google.com/p/s3ql/.
The full S3QL documentation should also be installed somewhere on your system, common locations are /usr/share/doc/s3ql or
/usr/local/doc/s3ql.
COPYRIGHT
2008-2011, Nikolaus Rath
1.11.1 August 27, 2014 S3QLCP(1)