Re: cannot ftp using proxy

2013-06-03 Thread Lawrence K. Chen, P.Eng.
Delving through the source code...it appears that it only uses the ftp_proxy 
when given an ftp url

something like:

 ftp ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT
Requesting ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT
  (via www-proxy.ksu.edu:8080)
100% |***|  3795   26.38 KiB/s00:00 ETA
3795 bytes retrieved in 00:00 (26.36 KiB/s)

Only the fetch side uses proxy (triggered by there being a ':' in the argument.)

The interactive ftp side doesn't.


- Original Message -
 Hello!
 Still can't resolve problem with ftp utility.
 
 root@ona:/root # ftp ftp2.freebsd.org
 ftp: Can't connect to `128.205.32.24:21': Operation timed out
 ftp: Can't connect to `ftp2.freebsd.org:ftp'
 ftp
 
 socksta -4 tells me that it is not even trying to connect to proxy
 server, connecting directly instead:
 
 root@ona:/root # sockstat -4
 USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN
 ADDRESS
 root ftp54160 3  tcp4   10.10.15.26:50457
 128.205.32.24:21
 
 
 root@ona:/root # uname -a
 FreeBSD ona.iem.gov.lv 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon
 Apr 29 18:27:25 UTC 2013
 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
  amd64
 
 
 root@ona:/root # env
 TERM=screen
 ftp_proxy=http://myproxy:8080
 http_proxy=http://myproxy:8080
 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
 SHELL=/bin/csh
 HOME=/root
 USER=root
 HOSTTYPE=FreeBSD
 VENDOR=amd
 OSTYPE=FreeBSD
 MACHTYPE=x86_64
 SHLVL=1
 PWD=/root
 LOGNAME=root
 GROUP=wheel
 HOST=ona
 EDITOR=vi
 PAGER=more
 BLOCKSIZE=K
 
 Tried to google with no luck - no solution works for me. By the way,
 fetch works as expected, I can fetch and install ports.
 I would appreciate any help and/or any hints!
 
 Best regards!
 VS.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org
 

-- 
Who: Lawrence K. Chen, P.Eng. - W0LKC - Senior Unix Systems Administrator
For: Enterprise Server Technologies (EST) --  SafeZone Ally
Snail: Computing and Telecommunications Services (CTS)
Kansas State University, 109 East Stadium, Manhattan, KS 66506-3102
Phone: (785) 532-4916 - Fax: (785) 532-3515 - Email: lkc...@ksu.edu
Web: http://www-personal.ksu.edu/~lkchen - Where: 11 Hale Library
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: backups using rsync

2013-03-04 Thread Lawrence K. Chen, P.Eng.


- Original Message -
 On Mon, 04 Mar 2013 03:35:30 -0800, Ronald F. Guilmette wrote:
  Now, unfortunately, I have just been bitten by the evil... and
  apparently
  widely known (except to me)... ``You can't use dump(8) to dump a
  journaled
  filesystem with soft updates'' bug-a-boo.
 
 There are other tools you can use, for example tar or cpdup
 or rsync, as you've mentioned in the subject.
 
 

Or if you want to be ambitious you could install something like 
'sysutils/backuppc' (where one of its methods is rsync, its what I use for all 
the systems I back up with it. - Windows, Linux, Mac OSX.)

And, then could get more than just the weekly rsync to itthough it could 
probably be made to only do fulls every week.  But, you could potentially then 
restore from an older full.

I do system fulls of my other systems to it...can't do a baremetal restore, but 
it can get me back up and running faster.  IE: I recently had harddrive 
failures in a couple of FreeBSD systems.  I did a fresh install and at first I 
restored /home and /usr/local (and some other dirs, like /var/db/pkg  
/var/db/ports)...and then other dirs and files as I found things missing.  Had 
to rebuild a handful of ports after that and then things were good.

The second system didn't go as well, because it had been silently corrupting 
things for a long time beforebut I still did the same kind of restore at 
first, but ended up rebuilding all the ports to get things good again.

Not sure if losing the system disk, if I could recover from a local backuppc... 
but I have my old backuppc system, getting most of my current system (mainly 
omit the backuppc pool, think my backup storage requirements would grow 
exponentially if I didn'tmy main backuppc pool is currently 6300G out of 
7300G zpool.)  But, I've suffered bit rot on the old backuppc pool in the 
past..when it was a RAID 1+0 arrayprobably worse now that its a 2.7TB 
volume without raid (the only volume on that system that isn't mirrored.)  
Though wonder if I want to try zfs on linux again, or replace it with FreeBSD.

I was faced with something like this on my Windows boxwhere eventually, I 
ended up writing off restoring from the local backup (a commercial time machine 
like product)...the mistake was using a windows fake raid5 external array as my 
backup drive.  And, losing the system due to problems in the fake raid.  I did 
briefly put together a CentOS live CD that could access the array, but the 
drives I copied the data to promptly failed on me shortly after I had broken 
the array and turned them into a raidz pool.  Someday I need to get back to 
going through the disk image of the failed system drive and recover as much as 
possible from that.  The box that was my Windows desktop is now my FreeBSD 
desktop

Lawrence
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org