07-15-2008
Interactive vs. non-interactive path.
Your buffer utility might not be in your remote shell's non-interactive PATH. You could use the full pathname in your command line so it finds it, like so:
tar cf .... | ssh .... "/usr/local/bin/buffer -o /dev/rmt..."
If it happens to live in /usr/local/bin. You can find out where it is by typing "which buffer" (in csh-like shells) or "type buffer" (in bash-like shells).
Personally, I use dd, but to each his own.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I have created a tar file by giving the below command :
all files of directory : /Accounts/2001/10/26
$tar -cvf Act26.tar /Accounts/2001/10/26
I copied into another server and given the following command:
$tar -xvf Act26.tar
then permision denied message came due to the... (3 Replies)
Discussion started by: krishna
3 Replies
2. UNIX for Advanced & Expert Users
Hi all,
I would like to append list of files to already taken tar backup
file. can anybody help?
last month backup :
cd /accounts/11
tar -cvf monthback.tar *
Now I want to add /accounts/12 to monthback.tar
is it possible?
Krishna (1 Reply)
Discussion started by: krishna
1 Replies
3. Filesystems, Disks and Memory
Hi all & anyone.
I'm trying to selectively backup up some old Apache log files before they are removed from the system (Slackware box).
Have created a file listing of what I want backed up ...Below is a portion of the file ./selectedbkup... (2 Replies)
Discussion started by: Cameron
2 Replies
4. UNIX for Dummies Questions & Answers
Every day we back up all files on our system that are older than 7 days, so effectively we do a day's worth at a time.
The way we do this is to issue a find command using mtime +7 - we then loop round and for each result we issue a MV to move the file to a newly created directory. We then TAR the... (20 Replies)
Discussion started by: tonysab
20 Replies
5. UNIX for Dummies Questions & Answers
I am trying to do a full system backup using tar. It then after maybe 12 or so hours comes up with tar: write error: unexpected EOF. I have thoroughly cleaned the drive and tried to use a different drive but it still gives me this error. Can someone help. I am on solaris 8. (1 Reply)
Discussion started by: TMashie
1 Replies
6. UNIX for Dummies Questions & Answers
Hi friends,
I am planning to backup my Solaris Servers to SAN storage using tar.
Also palnning to automate the job using Crontab.
Can anyone advise how to make the date change automatically everyday for backup.
Pls correct me if I am wrong. Thanks (7 Replies)
Discussion started by: solaris5.10
7 Replies
7. UNIX for Dummies Questions & Answers
I am backing up some data to an NTFS formatted backup drive. I have to preserve the Unix permissions of the data being backed up and therfore use backup into a tar file.
I would like to backup the differnential data in the tar file similiar to how Rsync works so as to save on backup time as it... (1 Reply)
Discussion started by: jelloir
1 Replies
8. Shell Programming and Scripting
Hi,
Another rookie here.
I have a script I am developing to backup files from various directories onto a windows machine.
Script description:
- mv files from various directories
- tar all files in that directory
- export to windows server for safe keeping, external backups.
The... (5 Replies)
Discussion started by: mcclunyboy
5 Replies
9. Shell Programming and Scripting
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies
10. Red Hat
This will be covered elsewhere im sure but i just cant seem to find my exact issue.
I want to backup my systems using tar, command is:
tar -cjpf /backup /bin /etc /home /opt /root /sbin /usr /var /bootWhen i include the / directory it also tar's the /lib /sys /proc /dev filesystems too (and... (8 Replies)
Discussion started by: Tommyk
8 Replies
LEARN ABOUT LINUX
getusershell
GETUSERSHELL(3) Linux Programmer's Manual GETUSERSHELL(3)
NAME
getusershell, setusershell, endusershell - get permitted user shells
SYNOPSIS
#include <unistd.h>
char *getusershell(void);
void setusershell(void);
void endusershell(void);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
getusershell(), setusershell(), endusershell():
_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
DESCRIPTION
The getusershell() function returns the next line from the file /etc/shells, opening the file if necessary. The line should contain the
pathname of a valid user shell. If /etc/shells does not exist or is unreadable, getusershell() behaves as if /bin/sh and /bin/csh were
listed in the file.
The setusershell() function rewinds /etc/shells.
The endusershell() function closes /etc/shells.
RETURN VALUE
The getusershell() function returns a NULL pointer on end-of-file.
FILES
/etc/shells
CONFORMING TO
4.3BSD.
SEE ALSO
shells(5)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2007-07-26 GETUSERSHELL(3)