LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2010, 04:23 PM   #1
Spawn10
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
How to use wget to move content from one directory to another


I am new to linux and wget...what would be the syntax to use wget to move content from one local directory to an svn repository (svn commit)? For instance if i have a directory c:\\dir1, and i want to move it's content onto an SVN repo...is this possible using wget? If so, how do I get this done?

Thanks

Last edited by Spawn10; 09-21-2010 at 04:28 PM.
 
Old 09-21-2010, 04:28 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
I don't get it. First of all, wget is a network downloader. It's not a general file manipulation tool. It's designed for the simple grabbing of files from http or ftp servers.

Second, what's up with the Windows directory syntax? Care to explain what you want to do in more detail?
 
Old 09-21-2010, 04:38 PM   #3
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Hello,

You say your new to linux so you may be asking for the method of how to do this with the wrong command.

There are several ways you can do what your trying to achieve.

Keeping things simple i'll have assumed you've 'cd' (change directory) into the path/folder where your going to be working. This is why my example don't include any '/' at the beginning of the folder name.

Copy contents of dir1 to /tmp/dir2
Code:
cp -a dir1/ /tmp/dir2/
OR
Copy contents of 1 to 2 but this is more from a backup point of view but is a very useful command.
Code:
rsync -a dir1 dir2
OR
Moving the directory from one to the other(basically renaming)
Code:
mv dir1 dir2
This means that dir1 and all of its contents will now be called dir2

Hope this helps, otherwise try to be a little clearer into what you intend. Because using wget seems incorrect for what your are asking for.

Regards,
M

EDIT:- I didn't notice you wanted to get it onto SVN as well.
Assuming you have SVN set-up with Apache/DAV support (as your talking about wget then i assume thats the case). Wget is the wrong tool for uploading to an SVN repo. If your talking about uploading after completing an SVN checkout? then you just need to use svn commit to upload your changes. If you used wget to download your files from SVN then things will be more complicated i think, your better off doing things properly and using svn checkout and svn commit, or using an SVN gui that makes things work similar to an FTP gui which for you might be a better place to start

Last edited by helptonewbie; 09-22-2010 at 05:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wget option to get download directory just.srad Linux - General 2 10-30-2008 09:37 AM
wget - downloading files from a directory Oris13 Linux - General 8 05-15-2008 06:42 PM
wget options for directory structure davimint Linux - Server 3 05-18-2007 11:24 PM
The postgresql data directory content in the pgsql directory is lost (empty data dir) kisembo Linux - Software 1 02-13-2006 02:11 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM


All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration