Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-21-2010, 04:23 PM   #1
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 this possible using wget? If so, how do I get this done?


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 + kde 4 / 5
Posts: 6,845

Rep: Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006
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
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39

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
cp -a dir1/ /tmp/dir2/
Copy contents of 1 to 2 but this is more from a backup point of view but is a very useful command.
rsync -a dir1 dir2
Moving the directory from one to the other(basically renaming)
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.


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.


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 > Forums > Linux Forums > Linux - Newbie

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

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