Displaying 20 results from an estimated 6000 matches similar to: "moving local files, remote mirroring, and --link-dest awkwardness"
2009 May 14
1
patches to enable rsync 3.0.6 compile on AIX 3.2
These two small changes enable 3.0.6 to compile and link on AIX 3.2:
diff -r rsync-3.0.6/lib/getaddrinfo.c rsync-3.0.6-new/lib/getaddrinfo.c
298c298
< if (!inet_aton(node, &ip)) {
---
> if (!inet_pton(AF_INET, node, &ip)) {
diff -r rsync-3.0.6/lib/sysacls.c rsync-3.0.6-new/lib/sysacls.c
1817a1818
> #if defined(ENOTSUP)
1818a1820,1822
2009 Apr 22
2
purge-empty-dirs and max-file-size confusion
I want to use --min-size to copy just large files (and their necessary
parent directories), but everything I've tried copies *all* the source
directories, and creates them empty on the destination even if they
don't have any big files in them. I only want the minimal directory
hierarchies that contain the big files. This doesn't work:
$ rm -rf /tmp/foo
$ rsync -ai --min-size
2009 Apr 24
0
how to put -ii output in log file and not on screen?
What I want is a client-side log file itemized list of *all* the changes
that rsync did on the remote machine. Using "--log-file" doesn't
show everything. In particular, --log-file says nothing if the remote
directory was populated using hard links from a --link-dest source.
Any number of remote links and directories can be created, with no
mention of any of it in the log file.
2006 May 28
3
Working with topics and categories
Hello guys,
I''m a newbie in RoR and I have a problem. My DB structure is
======================================
topics table : id(int,11)
name(varchar,255)
categories : id (int,11)
topic_id(varchar,255)
name(varchar,255)
======================================
--Models:--
class Topic < ActiveRecord::Base
has_many :categories
end
class
2009 Aug 06
1
Using 'field names' of a data.frame in a function
I may be doing this wrong! but I have a function which I have simplified a lot below. I want to pass some 'field names' of a data-frame to the function for it to then do some manipulation of.
Here's my code:
#build a simple dataset
mydataset = data.frame (
2008 Apr 01
1
Navigation Problems
Hi,
I am having problems with my page. I have a banner and navigation bar in
controller_name.rhtml in app/views/layout. Can someone please help?
Thanks
In the navigation bar, I have the following links:
Category1
Sub-Category1
Sub-Category2
Sub-Category3
Sub-Category4
Sub-Category5
Sub-Category6
In the main content, I have the following links:
Sub-Category1 edit delete
2009 Jul 17
2
Count data categories from table
Hi there,
I have a relatively simple question, though, I couldn't find a solution for
it so far. I have a table with 1000 entries and columns containing
information about different parameters for each entry.
What I want to do is group all parameters from one of the columns [e.g. if
all 1000 entries are grouped in 30 different categories (described as
character strings) in a second column] and
2003 Nov 11
1
unexpected --exclude pattern behaviours with glob wildcards
Rsync version: rsync-2.5.6-3mdk (Mandrake 9.2)
I see from the CVS log that some of the following awkwardness may be
fixed (or at least different) in the next public release. I'm looking
forward to that. In the interim, here are some problems:
---------
Problem 1 - unexpected consequence of replacing / with **
---------
The following exclude works because the explicit slash causes a match
2008 Dec 27
1
Want to create empty vectors inside a empty data frame
Hi All,
I want to create empty vectors inside an empty data frame.The name of the
vectors has to come dynamically.
For example if record_mean is my empty data frame,and i have say 4
categories,the category names for record mean data frame has to
recmeanC1,recmeanC2,recmeanC3,recmeanC4,which will be dynamically created
and which will again be inserted in my data frame's as column values.Each
2008 Nov 14
3
migration with data
Hi
I am using postgres and have two migration files like
001_create_categories.rb as
class CreateCategories < ActiveRecord::Migration
def self.up
create_table :categories do |t|
t.column :name, :string, :limit=>80
end
end
def self.down
drop_table :categories
end
end
and 002_populate_categories.rb
class PopulateCategories < ActiveRecord::Migration
2005 May 18
3
odd line in current CVS for firewall
>From a diff of my current shorewall firewall script with the new one
from the CVS today :
$ diff -w /usr/share/shorewall/firewall /usr/src/shorewall/s/firewall
[...]
673c910
< for network in $networks; do
---
> for networks in $networks; do
I don''t think that "for networks in $networks" works well.
--
-IAN! Ian! D. Allen Ottawa, Ontario,
2004 Jul 15
0
long rule action names with logging cause iptables errors
This rule with a long name and logging:
AllowInternetPrintingProtocol:debug
causes this iptables error:
Processing /etc/shorewall/rules...
Rule "AllowSSH:info net fw" added.
Rule "AllowPing:info net fw" added.
Rule "AllowWeb:debug net fw" added.
iptables v1.2.9: Maximum prefix length 29 for --log-prefix
Try `iptables
2004 Sep 10
1
which files were newer and not transferred?
I almost always use "-u" with rsync so that I don't overwrite remote
files that have changed. The only way to get rsync to tell me which
remote files are "newer" is to use a double-v (-vv), which produces way
more output than I care to see. (In true Unix fashion, I don't care to
see what was done successfully; I only want to see what failed.)
I've always had to
2004 Sep 22
0
traceroute misbehaviour on dual-home using -i or -s
My Linux workstation (Mandrake 10.1 kernel 2.6.8.1) is dual-homed to two
ADSL Internet providers. Card eth0 (192.168.9.250) is the default route
and leads to an SMC router (192.168.9.254). Card eth1 (192.168.1.250)
leads to a Linksys router (192.168.1.1). I''m not doing any NAT or PPPoE
in the workstation - the SMC and Linksys handle it all.
I know four commands that let you set an IP
2004 Jul 15
3
slight simplification to firewall log_rule_limit code
I think you can change the existing firewall logging code for
log_rule_limit (where you have one case for for LOGRULENUMBERS and
another almost identical case without) down to this slightly shorter
version with no duplication (excerpt):
if [ -n "$LOGRULENUMBERS" ]; then
eval rulenum=\$${chain}_logrules
[ -z "$rulenum" ] && rulenum=1
fi
case
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on
site navigation that can deal with any model being in the nav, allow
nesting, and can dynamically update.
So I thought about it for a while, and decided on a MenuItems class, which
contained the position of the child in relation to it''s siblings, where the
parent and the child were polymorphic. Then a given
2005 Jun 01
5
use of shell code in shorewall/params
The params file appears to be simply "sourced" by the firewall script,
which means one can put any Bourne shell code into it and it will
execute it. This feature isn''t documented, so I''m wondering if it can
be documented and thus guaranteed to always work. I''d like to dig out
the IP parameters of my interface cards from the ifcfg-eth? files and
set shorewall
2004 Sep 22
0
ping failure on dual-home using -I without default route
My Linux workstation (Mandrake 10.1 kernel 2.6.8.1) is dual-homed to two
ADSL Internet providers. Card eth0 (192.168.9.250) is the default route
and leads to an SMC router (192.168.9.254). Card eth1 (192.168.1.250)
leads to a Linksys router (192.168.1.1). I''m not doing any NAT or PPPoE
in the workstation - the SMC and Linksys handle it all.
If I remove all general default routes from
2005 Nov 30
0
Passing variables with update_all
I''d like to produce an SQL update along the lines of:
UPDATE companies SET category2={newcategory} WHERE (category2 =
{oldcategory})
At the moment I''ve got:
ctype = params[:ctype]
Company.update_all("category2=ctype", "category2=ctype")
At present this returns a StatementInvalid:
Unknown column ''ctype'' in ''where clause'':
2001 Nov 04
2
no error messages on I/O errors
rsync-2.4.6-2mdk
I ran an rsync into a file system that filled up. I got no error message
out of rsync - it just stopped and exited sliently. I stuck an fprintf
into the receiving code and verified that the proper error was being
generated - it just never gets printed by the rsync sending process.
I submitted a bug report about it; but, I can't believe that other
people haven't had