Skip to content

Commit 2425efe

Browse files
author
Ruoran Wang
committed
markdown code block fix
1 parent cf4caea commit 2425efe

2 files changed

+19
-18
lines changed

source/_posts/2010-10-15-upload-or-download-multiple-files-resursive-using-command-line-ftp.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ tags:
1515
---
1616

1717
Problem is I can't upload directory including sub-directories and files using command-line ftp. I searched for similar problem and looks like you can't do this using command line ftp, unless you create a script. One solution I found is the use of "[lftp](http://lftp.yar.ru/)".
18-
`
19-
# lftp ftp_host
20-
> user ftp_user ftp_pass
21-
> mirror source target` (download entire directory tree)`
22-
> mirror -R source target` (reverse mirror; upload entire directory tree)
18+
19+
\# lftp ftp_host
20+
\> user ftp_user ftp_pass
21+
\> mirror source target (download entire directory tree)
22+
\> mirror -R source target (reverse mirror; upload entire directory tree)
2323

2424
Usefull when transferring files between servers where you only have ftp access.
2525

source/_posts/2010-10-18-setup-subversion-svn-and-mod_dav_svn-on-cpanel-server.markdown

+14-13
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,17 @@ Create your repository: _svnadmin create /path/to/svn/repos_
5252
Add the code below to your domain's custom include file. You need to create this file based on [this guide](http://www.cpanel.net/documentation/easyapache/customdirectives.html) to preserve when you recompile Apache/PHP.
5353
Example file (Apache2,standard/non-ssl): _/usr/local/apache/conf/userdata/std/2/cpanl_user/domain.com/svn.conf_
5454
File Contents:
55-
`<Location /svn>
56-
#  mod dav svn support and location of svn repo files
57-
DAV svn
58-
SVNPath /path/to/svn/repos
59-
# authentication for security, create using htpasswd
60-
AuthType Basic
61-
AuthName "SVN Access"
62-
AuthUserFile /path/to/file/containing/user.pass
63-
Require valid-user
64-
# added for permissions/access
65-
Order allow,deny
66-
Allow from all
67-
</Location>`
55+
56+
<Location /svn>
57+
#  mod dav svn support and location of svn repo files
58+
DAV svn
59+
SVNPath /path/to/svn/repos
60+
# authentication for security, create using htpasswd
61+
AuthType Basic
62+
AuthName "SVN Access"
63+
AuthUserFile /path/to/file/containing/user.pass
64+
Require valid-user
65+
# added for permissions/access
66+
Order allow,deny
67+
Allow from all
68+
</Location>

0 commit comments

Comments
 (0)