Sponsored Content
Top Forums Shell Programming and Scripting Create Repositories with the *.dump filetype Post 302449290 by lynxlee on Monday 30th of August 2010 05:12:58 AM
Old 08-30-2010
Create Repositories with the *.dump filetype

I've a bunch of repository dumps that I need to include in my shell script to restore from the dump, but first I need to create the repositories first. How do I extract the names of the repository and removing the *.dump for use of the following line?

Code:
bash-3.00$ ls
andromeda.dump
alias.dump
broken.dump
calibre.dump
...

and I need to execute this commands

Code:
bash-3.00$ svnadmin create andromeda
bash-3.00$ svnadmin load andromeda </opt/vendor/svn/backups/andromeda.dump &

and repeat this for a few hundred repositories.

My guess is I need to use sed or awk to transform and omit the ".dump" first?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help, what is the difference between core dump and panic dump?

help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies

2. Linux

mount filetype error

Hello, I am trying to mount an external USB drive connected to a SnapServer 410 ( a network file server running a linux OS called Guardian OS). THanks to some articles on the the web, I found that I needed to use the following command: > mount -t vfat /dev/sde /mnt/usbext ... (7 Replies)
Discussion started by: drmoque
7 Replies

3. Ubuntu

Universal Repositories for All Linux Distros

Is it possible to use Other Distro's ( i.e Debian's or Ubuntu's ) repositories in Fedora? If not then what should be done to make common repositories for all linux distros. regards, Arun Maurya (2 Replies)
Discussion started by: arun_maurya
2 Replies

4. UNIX for Dummies Questions & Answers

Where are the repositories located in SUSE SLES 10 SP2

Hi, In SUSE SLES 10 SP2 where are the software repositories located? In CENTOS they are in /etc/yum.repositories or something like that. What does SLES use? (1 Reply)
Discussion started by: mojoman
1 Replies

5. Homework & Coursework Questions

Grep for filetype starting with letter p

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Which files in /usr/bin whose names begin with “p” are python scripts? Store the numbered results in... (3 Replies)
Discussion started by: alindner
3 Replies

6. Debian

Repositories in sources.list

I'm just interested to know how your sources.list look like. I got some repositories witch give some errors and I would like to clean it up. and when I do apt-get update I get few lines showing errors like 404 , this is how my list look like: # deb cdrom:/ squeeze main # deb cdrom:/... (0 Replies)
Discussion started by: zdorian
0 Replies

7. Shell Programming and Scripting

Converting DOS filetype to UNIX

Hello folks I am working on a project that requires me to write a script that operates on a bunch of text files. When I try less file.txt I see a bunch of ^M's everywhere. Some Googling tells me that this is because the files have a DOS fileformat and found the following fixes: sed 's/^M$//'... (5 Replies)
Discussion started by: ksk
5 Replies

8. Shell Programming and Scripting

Moving multiple filetype in a single loop

Hi, I am using the below code to move *.sh files to another directory. use File::Copy qw(move); while(<C:/Users/pandeesh/Desktop/*.sh>) { move $_,"C:/Users/pandeesh/Desktop/Projects"; } My requirement is i want to move *.sh,*.txt,*.xlsx,*.doc,*.pdf and *.epub files to the specified... (2 Replies)
Discussion started by: pandeesh
2 Replies

9. What is on Your Mind?

Man Page Repositories - Added jQuery and Bootstrap

I added both jQuery and Bootstrap Javacript libs to all man page repository pages. TODO: I need to add pagination to these repos because most are very large and load to slow on a single page. For the first upgrade, I manually added one new CSS Class (repository) to the main repo tables and... (0 Replies)
Discussion started by: Neo
0 Replies

10. What is on Your Mind?

Loading Animation for Large Man Page Repositories

Should have done this 10 years ago, so better late than never: Just added a "loading" animation to the the man page repositories when they load, especially since some are very large and take many seconds to load. See for example: https://www.unix.com/man-page-opensolaris-repository.php ... (1 Reply)
Discussion started by: Neo
1 Replies
svnadmin(1)						   Subversion Command Line Tool 					       svnadmin(1)

NAME
svnadmin - Subversion repository administration tool SYNOPSIS
svnadmin command repos-path [args] OVERVIEW
svnadmin is a tool to perform administrative operations on a Subversion repository. A Subversion repository contains the revision history of a directory tree. The revision history includes file changes and log messages as well as move and copy operations that were applied at some time in the past to the tree. svnadmin operations are typically carried out by an administrator. The svn(1) tool handles operations for normal users of the source controlled resource. COMMANDS
create repos-path Create a new, empty repository at repos-path. For example, a repository can be created with the command: $ svnadmin create /var/svn Importing a source tree into the repository created above is possible with the svn(1) command : $ svn import file:///var/svn . new_proj createtxn repos-path -rbase_rev Create a new transaction based on base_rev. dump repos-path [ -rlower-rev[:upper-rev] ] [--incremental] Dump the contents of filesystem to stdout in a 'dumpfile' portable format, sending feedback to stderr. Dump revisions lower-rev through upper-rev. If no revisions are given, all revision trees are dumped. If just lower-rev is given, that one revision tree is dumped. A 'dumpfile' is used to convert between incompatible repository formats. If --incremental is passed, then the first revi- sion dumped will be a diff against the previous revision, instead of the usual fulltext. load repos-path Read a 'dumpfile'-formatted stream from stdin, committing new revisions into the repository's filesystem. Send progress feedback to stdout. lscr repos-path path [ --copies ] Print, one-per-line and youngest-to-eldest, the revisions in which path was modified. Use the --copies flag to allow this operation to cross copy history while searching for revisions. (For directories, this is, for now, almost guaranteed to be uninteresting. Also, path must exist in the HEAD of the repository.) lstxns repos_path Print all txn names. recover repos_path Run the Berkeley DB recovery procedure on a repository. WARNING: only run this when you are SURE you're the only process accessing the repository. Requires exclusive access. rmtxns repos-path txn-name [ ... ] Delete the transaction(s) named txn-name. setlog repos-path -rrev file Set the log-message on revision rev to the contents of file. Be careful with this option. Log messages are stored as revision properties. The history of revision properties is not saved. This command will permanently overwrite the previous log message. SEE ALSO
svn(1) svn r3206 22 Sept 2002 svnadmin(1)
All times are GMT -4. The time now is 11:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy