<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>sh on ankit bahuguna</title>
    <link>https://ankitbahuguna.xyz/tags/sh/</link>
    <description>Recent content in sh on ankit bahuguna</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 25 Nov 2020 15:15:58 +0530</lastBuildDate>
    <atom:link href="https://ankitbahuguna.xyz/tags/sh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Deploying Hugo With Rsync</title>
      <link>https://ankitbahuguna.xyz/posts/deploy-hugo-with-rsync/</link>
      <pubDate>Wed, 25 Nov 2020 15:15:58 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/deploy-hugo-with-rsync/</guid>
      <description>This is the script I use to deploy my Hugo website to Vultr.
#!/bin/sh USER=username HOST=hostip DIR=nginx-web-root-absolute-path hugo &amp;amp;&amp;amp; rsync -avz --delete public/ ${USER}@${HOST}:${DIR} exit 0 It requires that you have ssh access to the server you are trying to deploy to, and it also requires that the said server has rsync installed as well.
The key command here is rsync -avz source destination .
The -a option is a combination flag.</description>
    </item>
    <item>
      <title>Linux File Permissions</title>
      <link>https://ankitbahuguna.xyz/posts/linux-file-permission/</link>
      <pubDate>Mon, 09 Feb 2015 19:46:07 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/linux-file-permission/</guid>
      <description>One of the most commonly faced issues while deploying websites with a web server like Nginx or Apache is dealing with permission errors. You deploy your website and suddenly your website starts throwing errors like &amp;ldquo;403 Forbidden&amp;rdquo; or &amp;ldquo;500 Internal Error&amp;rdquo;. Most often than not it has to do with the incorrect file or directory permissions.
The permissions on a file in Linux dictate who can perform what operations on it.</description>
    </item>
  </channel>
</rss>
