socialtext::resting::localcopy(3pm) [debian man page]
Socialtext::Resting::LocalCopy(3pm) User Contributed Perl Documentation Socialtext::Resting::LocalCopy(3pm)NAME
Socialtext::Resting::LocalCopy - Maintain a copy on disk of a workspace
SYNOPSIS
Socialtext::Resting::LocalCopy allows one to copy a workspace into files on the local disk, and to update a workspace from files on disk.
METHODS
new
Create a new LocalCopy object. Requires a "rester" parameter, which should be a Socialtext::Rester-like object.
pull
Reads a workspace and pulls all of the pages into files in the specified directory. Options are passed in as a list of named options:
dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pulled.
push
Reads a directory and pushes all the files in that directory up to the specified workspace. Options are passed in as a list of named
options:
dir - The directory the files should be saved to.
tag - an optional tag. If specified, only tagged files will be pushed.
Note - tag is not yet implemented.
BUGS
Attachments are not yet supported. Push by tag is not yet supported.
AUTHOR
Luke Closs, "<luke.closs at socialtext.com>"
COPYRIGHT & LICENSE
Copyright 2007 Luke Closs, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-01-09 Socialtext::Resting::LocalCopy(3pm)
Check Out this Related Man Page
Socialtext::Resting::Mock(3pm) User Contributed Perl Documentation Socialtext::Resting::Mock(3pm)NAME
Socialtext::Resting::Mock - Fake rester
SYNOPSIS
my $rester = Socialtext::Resting::Mock->(file => 'foo');
# returns content of 'foo'
$rester->get_page('bar');
FUNCTIONS
new( %opts )
Create a new fake rester object. Options:
file
File to return the contents of.
server( $new_server )
Get or set the server.
username( $new_username )
Get or set the username.
password( $new_password )
Get or set the password.
workspace( $new_workspace )
Get or set the workspace.
get_page( $page_name )
Returns the content of the specified file or the page stored locally in the object.
get_pages
Retrieve a list of pages in the current workspace.
put_page( $page_name )
Stores the page content in the object.
put_pagetag( $page, $tag )
Stores the page tags in the object.
get_pagetags( $page )
Retrieves page tags stored in the object.
die_on_put( $rc )
Tells the next put_page() to die with the supplied return code.
accept( $mime_type )
Stores the requested mime type.
order( $order )
Stores the requested order.
get_taggedpages( $tag )
Retrieves the taggedpages stored in the object.
set_taggedpages( $tag, $return )
Store the taggedpages return value in the object.
This is not a real function, but it can make testing easier.
json_verbose
Set the json_verbose flag.
response
Retrieve a fake response object.
AUTHOR
Luke Closs, "<luke.closs at socialtext.com>"
COPYRIGHT & LICENSE
Copyright 2006 Luke Closs, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-01-09 Socialtext::Resting::Mock(3pm)
Hi All,
i am trying to copy files from a directory to another.
here is what I am doing
ls -ltr INTER*
THE output is list of 80 files.
i have to copy all these 80 files into another directory
( say /home/pavi/folder) at a time.
can anyone please suggest me how do I do it.
thanks
pavi (4 Replies)
Hi,
I want to get the disk usage of a directory. But I want it to ignore a particular directory within it.
Lets say I want disk usage of all files/dirs within dir1 except those that are named .snapshot
Does du have the option of excluding a particular directory. (1 Reply)
Hello, I have been searching for a way to spawn new processes in a different workspace with no luck. Does anyone know how to do this at the command prompt. I wish to do something like this.
>vi a.txt & | workspace 2
is there any way to do this? (3 Replies)
Hi,
There are huge no of files in the directory. If i say ls -ltr it is taking too much time. i want to see only the files for Feb,2009. Please help.
Thanks (3 Replies)
Hi I have a few questions. I am trying to copy a file to a directory. I need to copy files that do not end in numbers, for example, into a directory. This is what I tried so far. cp filename directorytowhereIwannacopy but it says it can't copy to a directory. I need to copy many files into one... (2 Replies)
Hi, I had to pull a handful of account numbers from a file into a table. Now I want to do a basic list from a directory in my program showing me if any files for these customers exist. There are files associated with each client and need to be processed individually.
$Paytos = 00153301 00153302... (5 Replies)
Hi,
I need to copy files from one dir to another dir.
The list of filesnames to be moved are in a file called files2cp.log
Script:
#!/bin/ksh
exec 0</home/amdocs/files2cp.log
while read LINE
do
cp -i /iccs33/attach/"$LINE" /iccs30/attach/"$LINE"
done
The output is "No such... (6 Replies)
Hi,
I have a directory which is having many files. I want to copy 10files at a time to another directory.
For example.
First 10 files to one directory, then next 10 files to another directory and so on.
Please let me know if any work around there for it.
Thanks (4 Replies)
i have directory /abcd and i want to copy all today date files in /xyz directory.
i am able to see the files by using below command but not able to understand copy.
find . -mtime -1 -type f -exec ls -l {} \; (2 Replies)
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
I need to copy a list of files in directory and only files with content DUMMY_B should be copy over to a new directory. How can i do that ? Thanks a lot. (2 Replies)